Skip to content

Leave Room — Reference

Reference · Advanced · Server Connect

Remove the current socket from a named room.

Remove the current socket from a named room.

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

Remove the current socket from a named room.

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.
RoomThe application room to target, join or leave. Use a server-approved room name. A room is a routing group, not an authentication permission.

Join a test room, leave it, then send another room-limited test event. Confirm that this connection no longer receives it.

Leaving one room does not disconnect the socket or log the user out. The step requires current socket context and does not remove other connections from the same room.

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.