sendMessage

abstract suspend fun sendMessage(message: <Error class: unknown class>, messageTarget: MessageTarget = MessageTarget.Conversation()): Either<CoreFailure, Unit>

Attempts to send the given Message to suitable recipients.

Will handle all the needed encryption and possible set-up steps and retries depending on the ConversationOptions.Protocol.

Unlike sendPendingMessage, will not handle connectivity failures and scheduling re-tries in the future. Suitable for fire-and-forget messages, like real-time calling signaling, or messages where retrying later is useless or would lead to unwanted behaviour.

Parameters

message

that will be sent

See also