onConnectionLost property
Callback when the network connection is lost and the SDK fails to reconnect to the server within 10 seconds.
After calling joinChannel, this callback is triggered if the SDK cannot connect to the server within 10 seconds, regardless of whether the user has joined the channel successfully. If the SDK still fails to rejoin the channel within 20 minutes after disconnection, it stops trying to reconnect.
connectionConnection information. See RtcConnection.
Implementation
final void Function(RtcConnection connection)? onConnectionLost;