Skip to main content

Status Codes

This document lists all status codes for RongIMLib, based on the ErrorCode enumeration.

Connection Status Codes

Apps can monitor the SDK's connection status. The following status codes may be thrown during connection.

tip
  • Prior to version 5.6.1, the code parameter in Events.DISCONNECT and Events.SUSPEND callback functions was of type ConnectionStatus.
  • Starting from version 5.7.0, the code parameter in Events.DISCONNECT and Events.SUSPEND callback functions is of type ErrorCode.

The ConnectionStatus enumeration provides the following connection states:

Status CodeDescription
0Connection successful
1Connecting
2User-initiated disconnection
3Network unavailable (SDK will automatically reconnect)
4Socket unavailable (SDK will automatically reconnect)
6Kicked by another device
9User banned
12Invalid domain

Business Error Codes