sendMessage

abstract fun sendMessage(data: ByteArray)

Sends data to the remote mdoc or mdoc reader.

This is an asynchronous operation, data will be sent by another thread. It's safe to call this right after connect, data will be queued up and sent once a connection has been established.

Parameters

data

the data to send, must be at least one byte.