sendMessage abstract method

Future<ResultCode> sendMessage(
  1. Uint8List message,
  2. String userId
)

Send message to the user specified by userId.

Parameter message The message data.

Parameter userId The user who will receive the message.

Returns

Note You can send messages at a maximum frequency of 150 calls every 3 seconds. The maximum data length is 4 KB.

发送消息给某个指定用户。

Parameter message 要发送的消息。

Parameter userId 接收消息的用户。

Returns

Note 发送消息的调用频率上限为每 3 秒 150 次。请确保二进制消息大小不超过 4 KB。

Implementation

Future<ResultCode> sendMessage(Uint8List message, String userId);