Skip to main content
Send, update, delete, and receive messages in a chat room with any number of participants. Users subscribe to messages by registering a listener, and send messages to all users that are subscribed to receive them.

Subscribe to Messages

Message Structure

The following is the structure of a message: The following are the properties of a message:
PropertyDescriptionType
serialAn Ably-generated ID used to uniquely identify the message.String
clientIdThe client identifier of the user that created the message.String
textThe message contents.String
headersOptional headers for adding additional information to a message.Object
metadataOptional additional metadata about the message.Object
timestampThe time the message was created.Date
actionThe latest action performed on this message.String

Send a Message

Update a Message

Delete a Message

Next Steps

Build docs developers (and LLMs) love