---
title: "on socket method · RUAL Documentation"
description: "Answers a realtime socket method by name: the method in event, the function on On Method. A RUAL realtime block. See its 1 output pin and its version history."
canonical: https://docs.rual.nl/block-types/realtime/on_startup_register_socket_method
language: en
---

# on socket method

This block is part of the [`realtime`](https://docs.rual.nl/block-types/realtime) group and was last modified in core [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

Answers a realtime socket method by name: the method in `event`, the function on **On Method**.

- On Method `execute_function`

Startup registration block, not a flow executor (the .blueprint form is `socket "NAME" -> fn`). It registers the socket method named in the action's event for its entity, and every frame with that method runs the connected function with socket (socketconnection) and payload (object). The name "*" is the fallback for a method no other declaration has. Props: auth ("session" default, "none" for the methods a client calls before it has a session: signing in, a ping), scopes, rate (rate class), order ("connection": the read loop waits), lane (payload path: per-connection FIFO by its value), serialize (payload path: cluster-wide FIFO under a Redis lease), answers (false for a method that never answers), timeout_ms. A method name is unique per entity.

| `socket method` |
| --- |
| `register socket method` |

## Version history

Introduced in [`v15.0.2`](https://docs.rual.nl/core-versions/150002).

- [`v15.0.2`](https://docs.rual.nl/core-versions/150002): block added in this release.

- [Back to `realtime`](https://docs.rual.nl/block-types/realtime): Return to the main group to view all sub-groups

- [Back to `realtime`](https://docs.rual.nl/block-types/realtime?group=realtime): Return to the group to view all blocks within this group
