create

fun create(content: String): Message

Creates a new local Message instance intended to be sent by the current user. This message is initialized with a unique correlation ID, the current timestamp, and marked as originating from the local cache. The id and channelId will typically be populated later when the message is associated with a channel and successfully sent.

Return

A new Message instance representing a locally created message.

Parameters

content

The text content of the message.