Enumeration RTM_CONNECTION_CHANGE_REASON

Reasons for connection state change.

Enumeration Members

RTM_CONNECTION_CHANGED_BANNED_BY_SERVER: 3

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

RTM_CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED: 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.

RTM_CONNECTION_CHANGED_CLIENT_IP_ADDRESS_CHANGED_BY_USER: 18

18: The local IP Address is changed by user.

RTM_CONNECTION_CHANGED_CONNECTING: 0

0: The SDK is connecting to the server.

RTM_CONNECTION_CHANGED_ECHO_TEST: 17

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

RTM_CONNECTION_CHANGED_INCONSISTENT_APPID: 23

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

RTM_CONNECTION_CHANGED_INTERRUPTED: 2

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

RTM_CONNECTION_CHANGED_INVALID_APP_ID: 6

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

RTM_CONNECTION_CHANGED_INVALID_CHANNEL_NAME: 7

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

RTM_CONNECTION_CHANGED_INVALID_TOKEN: 8

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

RTM_CONNECTION_CHANGED_JOIN_FAILED: 4

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

RTM_CONNECTION_CHANGED_JOIN_SUCCESS: 1

1: The SDK has joined the channel successfully.

RTM_CONNECTION_CHANGED_KEEP_ALIVE_TIMEOUT: 14

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

RTM_CONNECTION_CHANGED_LEAVE_CHANNEL: 5

5: The SDK has left the channel.

RTM_CONNECTION_CHANGED_LICENSE_VALIDATION_FAILURE: 21

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

RTM_CONNECTION_CHANGED_LOGIN_SUCCESS: 10001

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

RTM_CONNECTION_CHANGED_LOGOUT: 10002

10002: User log out Agora RTM system.

RTM_CONNECTION_CHANGED_LOST: 16

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

RTM_CONNECTION_CHANGED_PRESENCE_NOT_READY: 10003

10003: User log out Agora RTM system.

RTM_CONNECTION_CHANGED_REJECTED_BY_SERVER: 10

10: The connection is rejected by the server.

RTM_CONNECTION_CHANGED_REJOIN_SUCCESS: 15

15: The SDK has rejoined the channel successfully.

RTM_CONNECTION_CHANGED_RENEW_TOKEN: 12

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

RTM_CONNECTION_CHANGED_SAME_UID_LOGIN: 19

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

RTM_CONNECTION_CHANGED_SETTING_PROXY_SERVER: 11

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

RTM_CONNECTION_CHANGED_STREAM_CHANNEL_NOT_AVAILABLE: 22

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

RTM_CONNECTION_CHANGED_TOKEN_EXPIRED: 9

9: The connection fails because the token has expired.

RTM_CONNECTION_CHANGED_TOO_MANY_BROADCASTERS: 20

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