onStreamMessage property
void Function(RtcConnection connection, int remoteUid, int streamId, Uint8List data, int length, int sentTs)?
onStreamMessage
final
Occurs when the local user receives the data stream from the remote user.
If you need a more comprehensive solution for low-latency, high-concurrency, and scalable real-time messaging and status synchronization, it is recommended to use. The SDK triggers this callback when the local user receives the stream message that the remote user sends by calling the sendStreamMessage method.
connectionThe connection information. See RtcConnection.remoteUidThe ID of the remote user sending the message.streamIdThe stream ID of the received message.dataThe data received.lengthThe data length (byte).sentTsThe time when the data stream is sent.
Implementation
final void Function(RtcConnection connection, int remoteUid, int streamId,
Uint8List data, int length, int sentTs)? onStreamMessage;