connectionInterrupted property
Occurs when the connection between the SDK and the server is interrupted.
Deprecated Use RtcEngineEventHandler.connectionStateChanged instead.
The SDK triggers this callback when it loses connection to the server for more than four seconds after the connection is established. After triggering this callback, the SDK tries to reconnect to the server. You can use this callback to implement pop-up reminders. This callback is different from RtcEngineEventHandler.connectionLost:
- The SDK triggers the RtcEngineEventHandler.connectionInterrupted callback when the SDK loses connection with the server for more than four seconds after it joins the channel.
- The SDK triggers the RtcEngineEventHandler.connectionLost callback when it loses connection with the server for more than 10 seconds, regardless of whether it joins the channel or not.
If the SDK fails to rejoin the channel 20 minutes after being disconnected from Meta's edge server, the SDK stops rejoining the channel.
The EmptyCallback
typedef does not include any parameter.
Implementation
@deprecated
EmptyCallback? connectionInterrupted;