3: The user is banned by the server. This error occurs when the user is kicked out the channel from the server.
13: The IP Address of SDK client has changed. i.e., Network type or IP/Port changed by network operator might change client IP address.
0: The SDK is connecting to Agora's edge server.
2: The connection between the SDK and Agora's edge server is interrupted.
6: The specified App ID is invalid. Try to rejoin the channel with a valid App ID.
7: The connection failed since channel name is not valid.
8: The connection failed since token is not valid, possibly because:
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: Timeout for the keep-alive of the connection between the SDK and Agora's edge server. The connection state changes to CONNECTION_STATE_RECONNECTING(4).
5: The SDK has left the channel.
10: The connection is rejected by server. This error usually occurs in the following situations:
12: When SDK is in connection failed, the renew token operation will make it connecting.
19: Join the same channel from different devices using the same user ID.
11: The connection changed to reconnecting since SDK has set a proxy server.
9: The connection failed since token is expired.
20: The number of hosts in the channel is already at the upper limit.
Reasons for a connection state change.