3: The connection between the SDK and the server is banned by the server.
13: The IP Address of the app has changed. A change in the network type or IP/Port changes the IP address of the app.
18: The local IP Address is changed by user.
0: The SDK is connecting to the server.
17: The change of connection state is caused by echo test.
23: The connection is failed due to token and appid inconsistent.
2: The connection between the SDK and the server is interrupted.
6: The connection fails because the App ID is not valid.
7: The connection fails because the channel name is not valid.
8: The connection fails because the token is not valid.
4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.
1: The SDK has joined the channel successfully.
14: A timeout occurs for the keep-alive of the connection between the SDK and the server.
5: The SDK has left the channel.
21: The connection is failed due to license validation failure.
10001: The connection of rtm edge service has been successfully established.
10002: User log out Agora RTM system.
16: The connection between the SDK and the server is lost.
10003: User log out Agora RTM system.
10: The connection is rejected by the server.
15: The SDK has rejoined the channel successfully.
12: When the connection state changes because the app has renewed the token.
19: The connection is failed due to join the same channel on another device with the same uid.
11: The connection changes to reconnecting because the SDK has set a proxy server.
22: The connection is failed due to user vid not support stream channel.
9: The connection fails because the token has expired.
20: The connection is failed due to too many broadcasters in the channel.
Reasons for connection state change.