MessageSender

interface MessageSender

Responsible for orchestrating all the pieces necessary for sending a message to the wanted recipients. Will handle reading and updating message status, retries in case of connectivity issues, and encryption based on ConversationOptions.Protocol.

See also

Inheritors

Functions

Link copied to clipboard
abstract suspend fun broadcastMessage(message: BroadcastMessage, target: BroadcastMessageTarget): Either<CoreFailure, Unit>

Attempts to send the given BroadcastMessage to suitable recipients.

Link copied to clipboard
abstract suspend fun sendClientDiscoveryMessage(message: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>

Attempts to send the given Client Discovery Message to suitable recipients.

Link copied to clipboard
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.

Link copied to clipboard
abstract suspend fun sendPendingMessage(conversationId: <Error class: unknown class>, messageUuid: String): Either<CoreFailure, Unit>

Given the ConversationId and UUID of a message that was previously persisted locally, attempts to send the message to suitable recipients.