MLSMessageApi

interface MLSMessageApi

Inheritors

Types

Link copied to clipboard
value class CommitBundle(val value: ByteArray)

An commitBundle originated CommitBundle object. The CommitBundle object contains a welcome message can be null, a commit message and the groupInfo.

Link copied to clipboard
value class Message(val value: ByteArray)

An MLS message can either be an application message containing user content or a handshake message which updates the group state (adding, removing clients).

Link copied to clipboard
value class WelcomeMessage(val value: ByteArray)

A welcome message allows an MLS client to join an existing MLS group.

Functions

Link copied to clipboard
abstract suspend fun sendCommitBundle(bundle: MLSMessageApi.CommitBundle): NetworkResponse<<Error class: unknown class>>

Send an MLS commit bundle to a MLS group. The destination group is encoded into the message itself.

Link copied to clipboard
abstract suspend fun sendMessage(message: MLSMessageApi.Message): NetworkResponse<<Error class: unknown class>>

Send an MLS message to a MLS group. The destination group is encoded into the message itself.