AgoraRtmSendChannelMessageErrorCode Constants Reference

Declared in AgoraRtmKit.h

AgoraRtmSendChannelMessageErrorCode

Error codes related to sending a channel message.

Constants

AgoraRtmSendChannelMessageErrorOk

0: The server receives the channel message.

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageErrorFailure

1: The user fails to send the channel message state.

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageErrorTimeout

2: The SDK does not receive a response from the server in 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the AgoraRtmConnectionStateAborted or AgoraRtmConnectionStateReconnecting state.

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageTooOften

3: The method call frequency exceeds the limit of 180 calls every three seconds (channel and peer messages taken together).

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageInvalidMessage

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

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageErrorNotInitialized

101: The SDK is not initialized.

Declared In AgoraRtmKit.h.

AgoraRtmSendChannelMessageNotLoggedIn

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

Declared In AgoraRtmKit.h.

Declared In

AgoraRtmKit.h