onRejoinChannelSuccess property

void Function(RtcConnection connection, int elapsed)? onRejoinChannelSuccess
final

Occurs when a user rejoins the channel. When a user loses connection with the server because of network problems, the SDK automatically tries to reconnect and triggers this callback upon reconnection.

  • elapsed Time elapsed (ms) from the local user calling the joinChannel 1/2 or joinChannel 2/2 method until this callback is triggered.

Implementation

final void Function(RtcConnection connection, int elapsed)?
    onRejoinChannelSuccess;