sendUserBinaryMessage abstract method
Future<int?>
sendUserBinaryMessage({
- required String uid,
- required Uint8List message,
- required MessageConfig config,
Sends a binary message (P2P) to the specified user in the room.
The message
length must not exceed 46 KB.
config
: Reliability of the message.
Notes:
- Before sending an in-room binary message, you must call RTCRoom.joinRoom to join the target room.
- After calling this API, the local user will receive RTCRoomEventHandler.onUserMessageSendResult.
- If the binary message is sent successfully, the user specified by
uid
will receive RTCRoomEventHandler.onUserBinaryMessageReceived.
Implementation
Future<int?> sendUserBinaryMessage({
required String uid,
required Uint8List message,
required MessageConfig config,
});