Public Attributes

int CHANNEL_MESSAGE_ERR_OK = 0
 
int CHANNEL_MESSAGE_ERR_FAILURE = 1
 
int CHANNEL_MESSAGE_ERR_TIMEOUT = 2
 
int CHANNEL_MESSAGE_ERR_TOO_OFTEN = 3
 
int CHANNEL_MESSAGE_ERR_INVALID_MESSAGE = 4
 
int CHANNEL_MESSAGE_ERR_NOT_INITIALIZED = 101
 
int CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN = 102
 

Member Data Documentation

◆ CHANNEL_MESSAGE_ERR_OK

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_OK = 0

0: The server receives the channel message.

◆ CHANNEL_MESSAGE_ERR_FAILURE

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_FAILURE = 1

1: The user fails to send the channel message, possibly because the connection state between the SDK and th system is interrupted and the SDK is in the CONNECTION_STATE_RECONNECTING state.

◆ CHANNEL_MESSAGE_ERR_TIMEOUT

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_TIMEOUT = 2

2: The SDK does not receive a response from the server in five seconds. The current timeout is set as five seconds.

◆ CHANNEL_MESSAGE_ERR_TOO_OFTEN

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_TOO_OFTEN = 3

3: The method call frequency exceeds the limit of 60 queries per second (channel and peer messages taken together).

◆ CHANNEL_MESSAGE_ERR_INVALID_MESSAGE

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_INVALID_MESSAGE = 4

4: The message is null or exceeds 32 KB in length.

◆ CHANNEL_MESSAGE_ERR_NOT_INITIALIZED

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_NOT_INITIALIZED = 101

101: The SDK is not initialized.

◆ CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN

int io.agora.rtm.RtmStatusCode.ChannelMessageError.CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN = 102

102: The user does not call the login method, or the method call of login does not succeed before sending out a channel message.