onStreamMessageError property
void Function(RtcConnection connection, int remoteUid, int streamId, ErrorCodeType code, int missed, int cached)?
onStreamMessageError
final
Occurs when an error occurs in receiving a stream message from a remote user.
This callback indicates that the local user failed to receive 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.codeThe error code. See ErrorCodeType.missedThe number of lost messages.cachedThe number of messages cached after the data stream was interrupted.
Implementation
final void Function(RtcConnection connection, int remoteUid, int streamId,
ErrorCodeType code, int missed, int cached)? onStreamMessageError;