sendDirectMessage
fun sendDirectMessage(message: String, type: String = HMSMessageType.CHAT, peerTo: HMSPeer, hmsMessageResultListener: HMSMessageResultListener)
Sends a message a particular peer only. The one specified in peerTo.
Parameters
message
content of the message.
type
the type of message can be of HMSMessageType or others as you define them.
peerTo
the HMSPeer to whom this message is directed.
hmsMessageResultListener
informs about whether the message was successfully sent, or the kind of error if not.*