sendRoomMessage method

FutureOr<long> sendRoomMessage(
  1. String messageStr
)

@detail api @brief Mass text messages to all other users in the room. @param messageStr The content of the text message sent. The message does not exceed 64 KB. @note - Before broadcasting a text message in the room, you must call joinRTSRoom{@link #RTSRoom#joinRTSRoom} to join the room. - After the call, you will receive the onRoomMessageSendResult{@link #IRTSRoomEventHandler#onRoomMessageSendResult} callback; - Other users in the same room will receive the onRoomMessageReceived{@link #IRTSRoomEventHandler#onRoomMessageReceived} callback.

Implementation

FutureOr<long> sendRoomMessage(String messageStr) async {
  return await nativeCall('sendRoomMessage', [messageStr]);
}