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