DataHandler

class DataHandler(val messageFlow: Flow<DataMessage>, send: suspend (payload: ByteArray, options: DataSendOptions) -> Unit)

A state holder for handling data messages.

See also

Constructors

Link copied to clipboard
constructor(messageFlow: Flow<DataMessage>, send: suspend (payload: ByteArray, options: DataSendOptions) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard

A flow for all the DataMessage received.

Functions

Link copied to clipboard
suspend fun sendMessage(payload: ByteArray, options: DataSendOptions)