sendTextMessage

Sends a string type chat message in the given room

Return

null if the message is sent successfully; otherwise, a ChatTextError explaining the failure.

Parameters

message

The message to be sent. Cannot be blank or exceed the character limit.


fun sendTextMessage(message: String, peerIds: List<String>): ChatTextError?

Sends a TEXT message to specific participants.

Return

null if the message is sent successfully; otherwise, a ChatTextError explaining the failure.

Parameters

message

The message to be sent. Cannot be blank or exceed the character limit.

peerIds

The peerIDs of the participants.