Real-time chat communication via WebSockets
Type | Description |
---|---|
chat | Regular chat messages |
typing | Typing indicator |
read_receipt | Message read confirmation |
presence | User presence updates |
code
: Must be “chat”user_id
: The user ID of the senderroom_id
: The conversation or room IDdata.message
: The text message contentdata.sender
: The user ID of the sender (same as user_id
)data.message_id
: Unique ID for the message (auto-generated if not provided)data.attached_files
: Array of file IDs attached to the messagedata.reply_to
: ID of the message being replied totimestamp
: ISO format timestamp (auto-generated if not provided)RoomStatus.TYPING
code:
RoomStatus.READ_RECEIPT
code:
RoomStatus.PRESENCE
code:
/files
API endpoint