This page provides a brief overview of the limitations of the Agora RTM Web SDK, including API call limit, string size, encoding, and more.
The Agora RTM SDK does not have a limit on the number of concurrent online users. However, Agora has the following recommendations on the maximum number of channel messages per second for a single channel:
Concurrent online users in a single channel | Number of channel messages per second |
---|---|
< 1,000 | < 200 |
≥ 1,000 and < 10,000 | < 100 |
≥ 10,000 | < 30 |
If the number of messages per second exceeds the recommended values, latency can increase significantly and may also cause the following issues:
RECONNECTING
state or keeps switching between the CONNECTED
state and the RECONNECTING
state. For other users, the current user may appear offline.Agora provides customized service to increase the number of messages per second without affecting latency or stability. Please contact support@agora.io for more information.
The call limit is for one RtmClient
instance. If an operation corresponds to multiple methods, the number of the method calls of an operation equals the sum of the method calls of all corresponding methods in a specific time frame.
RtmClient
instances.Function | Method | Call limit |
---|---|---|
Log in to the Agora RTM system | login | Two calls per second |
Retrieve member count of specified channels | getChannelMemberCount | One call per second |
Join the same channel each time1 | join | Two calls every five seconds |
Join a different channel each time1 | join | 50 calls every three seconds |
Send messages | 180 calls every three seconds | |
Retrieve a member list of the channel | getMembers | Five calls every two seconds |
Renew the Token | renewToken | Two calls per second |
Query the online status of the specified users | queryPeersOnlineStatus | 10 calls every five seconds |
Set user attributes | 10 calls every five seconds | |
Get user attributes | 40 calls every five seconds | |
Set channel attributes | 10 calls every five seconds | |
Get channel attributes | 10 calls every five seconds |
See Supported Browsers.
Supports channel and peer-to-peer messages, invitation content, and invitation response in UTF-8 only.