TRTC 怎么监测断网和重连?

TRTC 怎么监测断网和重连?

通过以下监听回调监听:

onConnectionLost:SDK 跟服务器的连接断开。

onTryToReconnect:SDK 尝试重新连接到服务器。

onConnectionRecovery:SDK 跟服务器的连接恢复。