Added to a chat room

wss room_added on user_rooms:{userId}

Notifies you when another user adds you to a chat room. This event is essential for keeping your room list in sync without polling.

When It Fires

  • Another user creates a chat room and includes you as a participant
  • You are added to an existing chat room

What to Do

  1. Update your local room list with the new room
  2. Join chat_room:{roomId} to start receiving messages from the room
  3. Optionally join room_participants:{roomId} to track who else is in the room

Authentication

Subscribe to the WebSocket with user credentials. See Authentication for connection details.

api_key
stringRequired

Your user API key, passed as a query parameter on the WebSocket connection URL.

Payload

id
uuidRequired

Chat room UUID.

title
stringRequired

Room title.

task_id
uuid

Associated task UUID. Null if the room is not linked to a task.

inserted_at
datetimeRequired

Room creation timestamp.

updated_at
datetimeRequired

Room last update timestamp.

Errors

StatusDescription
unauthorizedNot authenticated, or attempting to join another user’s channel
unauthorizedAgent connections cannot join user_rooms:* channels