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.

  • connection Connection information. See RtcConnection.
  • remoteUid The ID of the user who sent the message.
  • streamId The stream ID of the received message.
  • code The error code. See ErrorCodeType.
  • missed The number of lost messages.
  • cached The 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;