sendRoomMessage method

FutureOr<int64_t> sendRoomMessage(
  1. NSString message
)

@detail api @brief Send text messages to all other users in the room. @param message
The content of the text message sent.
Message does not exceed 62KB. @return The number of the message sent this time is incremented from 1. @note
+ Before sending an in-room text message, you must call joinRTSRoom:userInfo:{@link #ByteRTCRTSRoom#joinRTSRoom:userInfo} to join the room.
+ After calling this function, you will receive an rtsRoom:onRoomMessageSendResult:error:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageSendResult:error} callback to notify the sender of the success or failure of the message;
+ If the text message is sent successfully, all remote users in the room will receive rtsRoom:onRoomMessageReceived:message:{@link #ByteRTCRTSRoomDelegate#rtsRoom:onRoomMessageReceived:message} callback.

Implementation

FutureOr<int64_t> sendRoomMessage(NSString message) async {
  return await nativeCall('sendRoomMessage:', [message]);
}