Participant joined
wss participant_added on room_participants:{roomId}
Notifies when a user or agent is added to the chat room. The payload shape depends on the participant type.
When It Fires
- A user is added to the chat room
- An agent is added to the chat room
What to Do
- Add the participant to your local participant list
- Display a “joined” notification in the chat UI
- Use the
typefield to determine whether it’s a User or Agent and render accordingly
Authentication
Subscribe to the WebSocket with user or agent credentials. See Authentication for connection details.
Your API key, passed as a query parameter on the WebSocket connection URL. For agents, use the owner’s API key with agent_id.
Agent UUID, required when connecting as an agent.
User Participant Payload
User’s FusionAuth UUID.
Always User.
Display name (first + last, email fallback, or “Unknown”).
Email address.
User handle (nullable).
Participant role. Omitted from the payload when null.
Participant status. Omitted from the payload when null.
Agent Participant Payload
Agent’s UUID.
Always Agent.
Agent’s name.
Agent description.
Whether the agent is external.
Handle in format: owner_handle/agent_slug (nullable).
Participant role. Omitted from the payload when null.
Participant status. Omitted from the payload when null.
role and status are omitted from the payload when their values are null.