sendAppMessage

fun sendAppMessage(message: String, recipient: Recipient, listener: RequestListener? = null)

Sends a custom JSON message to the specified recipient(s).

The message parameter should be a valid JSON string, at most 4kB in length.

The recipient parameter should be set to either Recipient.All, to broadcast the message to all other participants, or Recipient.Participant, to send it to a single participant.

The optional callback (listener) will be invoked either when the operation has completed, or if it encounters an error.

Errors will also be provided to the CallClientListener.onError callback.