update
abstract suspend fun update(serial: String, text: String, metadata: JsonObject? = null, headers: Map<String, String>? = null, operationDescription: String? = null, operationMetadata: Map<String, String>? = null): Message
Update a message in the chat room.
This method uses the Ably Chat API REST endpoint for updating messages. It creates a new message with the same serial and a new version. The original message is not modified. Spec: CHA-M8
Return
The updated message object.
Parameters
serial
The serial of the message to update.
text
The updated text for the message.
metadata
Optional metadata of the message. Allows attaching additional structured data.
headers
Optional headers for the message. Used for attaching extra context or flags.
operation Description
Optional description for the update operation.
operation Metadata
Optional metadata describing the update operation.