sendMessage

fun sendMessage(request: SendMessageRequest, callback: SendMessageCallback? = null)

Sends a message request to the room through a socket connection.

Parameters

request

message to be send and related metadata to be sent

callback

callback interface that will be called on either success or rejection of the message by the server

Throws

when provided request fails to serialise