sendMessageToParticipant

fun sendMessageToParticipant(message: String, address: String? = null)

Sends a message through the active data channel.

Parameters

message
  • The message to be sent.

address
  • The address of the participant to which message is to be sent. If address is not specified, the message would be sent to all the current participants in the room.