MlsTransport

interface MlsTransport

You must implement this interface and pass the implementing object to CoreCrypto.provideTransport. CoreCrypto uses it to communicate with the delivery service.

Functions

Link copied to clipboard
abstract suspend fun prepareForTransport(historySecret: HistorySecret): MlsTransportData

Prepare a history secret before being sent

Link copied to clipboard
abstract suspend fun sendCommitBundle(commitBundle: CommitBundle): MlsTransportResponse

Send a commit bundle to the delivery service.

Link copied to clipboard
abstract suspend fun sendMessage(mlsMessage: ByteArray): MlsTransportResponse

Send a message to the delivery service.