Overview
All WebSocket messages are JSON objects with atype field. Messages flow in both directions: client→server and server→client.
Message Structure
Client → Server
Server → Client
Client Message Types
join
Join a conversation room to receive messages.leave
Leave a conversation room.message
Send a message to a conversation.typing_start
Indicate user started typing.typing_stop
Indicate user stopped typing.read
Mark a message as read.Server Message Types
joined
Confirmation of joining a room.left
Confirmation of leaving a room.message
New message received.typing
Typing indicator update.start, stop
presence
User presence update.online, offline
receipt
Message receipt update.delivered, read
support
Support session event.assigned, bot_takeover, closed
error
Error response.Message Payload Details
Message Payload
Typing Payload
Presence Payload
Receipt Payload
Support Event Payload
Example: Complete Flow
Next Steps
Rooms
Room management
Messaging
Real-time messaging
Presence
Presence system
SDK
Use the SDK instead