onConnectionStateChanged method
@detail callback
@author hanchenchen.c
@brief 回调 SDK 与信令服务器连接状态相关事件。当 SDK 与信令服务器的网络连接状态改变时回调该事件。
@param state
当前 SDK 与信令服务器连接状态。 详细定义参见 ConnectionState{@link #ConnectionState}
@param reason
引起信令服务器连接状态发生改变的原因,目前未启用固定为 -1 。
@note 更多信息参见 连接状态提示。
Implementation
FutureOr<void> onConnectionStateChanged(ConnectionState state) async {}