Skip to content

Socket Identify — Reference

Reference · Advanced · Server Connect

Read the current connection’s socket identifier.

Read the current connection’s socket identifier.

  • A Node.js project with Socket.IO configured and connected test clients. Socket-specific operations must run in a socket action.

Read the current connection’s socket identifier.

Setting Meaning
NameThe step identifier used for results in the server action. Sending/joining steps do not return a delivery receipt merely because they have a name.

From a test socket action, read Identify and return it through a deliberately output Set Value if needed for debugging. Reconnect the client and check the new connection context.

Outside a socket action the installed module returns null. This is distinct from Security Identify, which returns an authenticated provider identity. Never use a socket ID alone as proof of identity or authorization.

Use client event handlers or the appropriate Server Connect subscription to update the page. Keep authorization, persistence and event delivery as explicit parts of the workflow.

You can choose the intended recipients/context and verify the event or room behavior with test clients.