Reasons for connection state change.
| Enumerator |
|---|
| AgoraRtmClientConnectionChangedConnecting | 0: The SDK is connecting to the server.
|
| AgoraRtmClientConnectionChangedJoinSuccess | 1: The SDK has joined the channel successfully.
|
| AgoraRtmClientConnectionChangedInterrupted | 2: The connection between the SDK and the server is interrupted.
|
| AgoraRtmClientConnectionChangedBannedByServer | 3: The connection between the SDK and the server is banned by the server.
|
| AgoraRtmClientConnectionChangedJoinFailed | 4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.
|
| AgoraRtmClientConnectionChangedLeaveChannel | 5: The SDK has left the channel.
|
| AgoraRtmClientConnectionChangedInvalidAppId | 6: The connection fails because the App ID is not valid.
|
| AgoraRtmClientConnectionChangedInvalidChannelName | 7: The connection fails because the channel name is not valid.
|
| AgoraRtmClientConnectionChangedInvalidToken | 8: The connection fails because the token is not valid.
|
| AgoraRtmClientConnectionChangedTokenExpired | 9: The connection fails because the token has expired.
|
| AgoraRtmClientConnectionChangedRejectedByServer | 10: The connection is rejected by the server.
|
| AgoraRtmClientConnectionChangedSettingProxyServer | 11: The connection changes to reconnecting because the SDK has set a proxy server.
|
| AgoraRtmClientConnectionChangedRenewToken | 12: When the connection state changes because the app has renewed the token.
|
| AgoraRtmClientConnectionChangedClientIpAddressChanged | 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.
|
| AgoraRtmClientConnectionChangedKeepAliveTimeout | 14: A timeout occurs for the keep-alive of the connection between the SDK and the server.
|
| AgoraRtmClientConnectionChangedRejoinSuccess | 15: The SDK has rejoined the channel successfully.
|
| AgoraRtmClientConnectionChangedChangedLost | 16: The connection between the SDK and the server is lost.
|
| AgoraRtmClientConnectionChangedEchoTest | 17: The change of connection state is caused by echo test.
|
| AgoraRtmClientConnectionChangedClientIpAddressChangedByUser | 18: The local IP Address is changed by user.
|
| AgoraRtmClientConnectionChangedSameUidLogin | 19: The connection is failed due to join the same channel on another device with the same uid.
|
| AgoraRtmClientConnectionChangedTooManyBroadcasters | 20: The connection is failed due to too many broadcasters in the channel.
|