onStreamMessage property
void Function(RtcConnection connection, int remoteUid, int streamId, Uint8List data, int length, int sentTs)?
onStreamMessage
final
Occurs when a stream message is received from a remote user.
This callback indicates that the local user has received a stream message sent by a remote user using the sendStreamMessage method. If you need a more comprehensive solution for low-latency, high-concurrency, and scalable real-time messaging and state synchronization, we recommend using Real-time Messaging.
connectionConnection information. See RtcConnection.remoteUidThe ID of the user who sent the message.streamIdThe stream ID of the received message.dataThe received data.lengthThe length of the data in bytes.sentTsThe timestamp when the data stream was sent.
Implementation
final void Function(RtcConnection connection, int remoteUid, int streamId,
Uint8List data, int length, int sentTs)? onStreamMessage;