onStreamMessageError property
void Function(RtcConnection connection, int remoteUid, int streamId, ErrorCodeType code, int missed, int cached)?
onStreamMessageError
final
Occurs when the local user does not receive 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 fails to receive 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.codeError code. See ErrorCodeType.missedThe number of lost messages.cachedNumber of incoming cached messages when the data stream is interrupted.
Implementation
final void Function(RtcConnection connection, int remoteUid, int streamId,
ErrorCodeType code, int missed, int cached)? onStreamMessageError;