Presence

Track who's in each room and view join/leave events

Query Presence
Sends a presence op to query current room members. The server responds with an ack containing member list and count.
Room Members

No presence data yet. Subscribe to a room and query presence.

How Presence Works

1. Subscribe to a room channel — the server automatically tracks your presence in Redis.

2. When someone joins/leaves, you receive a presence_event with event: join|leave, member: user-id, and count: N.

3. Use op: presence to query current members at any time (cross-node via Redis).

4. Presence is stored in Redis hash sock:pres:{org}:{app}:room:{name} with TTL refresh.

Presence Events
0 messages