on socket method
This block is part of the realtime group and was last modified in core v15.0.2.
on socket method v15.0.2 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.
v15.0.2: block added in this release.
Back to
realtime Return to the main group to view all sub-groups Back to realtime Return to the group to view all blocks within this group