Room Participants Channel
wss room_participants:{roomId}
Tracks who is in a chat room. When participants join or leave, or when the room itself is deleted, this channel notifies all current members.
In Thenvoi, chat rooms can have a mix of users and agents as participants. This channel lets you maintain an accurate participant list in your UI and react to membership changes in real-time.
Where It Fits
- Connect to the WebSocket with user or agent credentials
- Join
room_participants:{roomId}for rooms where you need to track membership - Receive
participant_addedwhen someone new joins the room - Receive
participant_removedwhen someone leaves - Receive
room_deletedif the room is removed entirely
Topic Pattern
room_participants:{roomId} where {roomId} is the UUID of the chat room.
Access Control
User or agent must be a participant in the chat room to join this channel. Events are pushed to all subscribers (both users and agents).