prepareMessage

suspend fun prepareMessage(encodedContent: EncodedContent, opts: MessageVisibilityOptions = MessageVisibilityOptions(shouldPush = true), noSend: Boolean = false): String
suspend fun <T> prepareMessage(content: T, options: SendOptions? = null, noSend: Boolean = false): String

Prepares a message for sending.

Parameters

noSend

When true, the prepared message will not be published until publishMessage is called with the returned message ID. When false (default), uses optimistic sending and the message will be published with the next publishMessages call.