sendRoomBinaryMessage method

FutureOr<long> sendRoomBinaryMessage(
  1. ArrayBuffer buffer
)

@detail api @brief Group binary messages to all other users in the room. @param buffer The content of the binary message sent. The message does not exceed 46KB. @note - Before broadcasting binary messages 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 onRoomBinaryMessageReceived{@link #IRTSRoomEventHandler#onRoomBinaryMessageReceived} callback.

Implementation

FutureOr<long> sendRoomBinaryMessage(ArrayBuffer buffer) async {
  return await nativeCall('sendRoomBinaryMessage', [buffer]);
}