Enumeration RtmConnectionChangeReason

Reasons for connection state change.

Enumeration Members

rtmConnectionChangedBannedByServer: 3

3: The connection between the SDK and the server is banned by the server.

rtmConnectionChangedCertificationVerifyFailure: 22

22: The connection is failed due to certification verify failure.

rtmConnectionChangedClientIpAddressChanged: 13

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.

rtmConnectionChangedClientIpAddressChangedByUser: 18

18: The local IP Address is changed by user.

rtmConnectionChangedConnecting: 0

0: The SDK is connecting to the server.

rtmConnectionChangedEchoTest: 17

17: The change of connection state is caused by echo test.

rtmConnectionChangedInconsistentAppid: 24

24: The connection is failed due to token and appid inconsistent.

rtmConnectionChangedInterrupted: 2

2: The connection between the SDK and the server is interrupted.

rtmConnectionChangedInvalidAppId: 6

6: The connection fails because the App ID is not valid.

rtmConnectionChangedInvalidChannelName: 7

7: The connection fails because the channel name is not valid.

rtmConnectionChangedInvalidToken: 8

8: The connection fails because the token is not valid.

rtmConnectionChangedJoinFailed: 4

4: The SDK fails to join the channel for more than 20 minutes and stops reconnecting to the channel.

rtmConnectionChangedJoinSuccess: 1

1: The SDK has joined the channel successfully.

rtmConnectionChangedKeepAliveTimeout: 14

14: A timeout occurs for the keep-alive of the connection between the SDK and the server.

rtmConnectionChangedLeaveChannel: 5

5: The SDK has left the channel.

rtmConnectionChangedLicenseValidationFailure: 21

21: The connection is failed due to license validation failure.

rtmConnectionChangedLoginSuccess: 10001

10001: The connection of rtm edge service has been successfully established.

rtmConnectionChangedLogout: 10002

10002: User log out Agora RTM system.

rtmConnectionChangedLost: 16

16: The connection between the SDK and the server is lost.

rtmConnectionChangedPresenceNotReady: 10003

10003: User log out Agora RTM system.

rtmConnectionChangedRejectedByServer: 10

10: The connection is rejected by the server.

rtmConnectionChangedRejoinSuccess: 15

15: The SDK has rejoined the channel successfully.

rtmConnectionChangedRenewToken: 12

12: When the connection state changes because the app has renewed the token.

rtmConnectionChangedSameUidLogin: 19

19: The connection is failed due to join the same channel on another device with the same uid.

rtmConnectionChangedSettingProxyServer: 11

11: The connection changes to reconnecting because the SDK has set a proxy server.

rtmConnectionChangedStreamChannelNotAvailable: 23

23: The connection is failed due to user vid not support stream channel.

rtmConnectionChangedTokenExpired: 9

9: The connection fails because the token has expired.

rtmConnectionChangedTooManyBroadcasters: 20

20: The connection is failed due to too many broadcasters in the channel.