3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel.
If the connection to the channel is lost because, for example, if the network is down or switched, the SDK automatically tries to reconnect and triggers:
2: The SDK is connecting to Agora's edge server.
onConnectionStateChangedcallback and switches to the CONNECTION_STATE_CONNECTED state.
5: The SDK fails to connect to Agora's edge server or join the channel.
4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
Generated using TypeDoc