最近更新时间:2024.05.06 19:00:56
首次发布时间:2022.09.16 15:44:29
使用实时消息功能时,应注意以下限制条件:
onRoomStateChanged
回调通知进房成功。onRoomStateChanged
回调通知进房成功。另外,房间内发送的消息也应满足以下的额外限制。如果超过此限制,延迟会大幅增加。
房间内在线人数 | 每秒最大消息数量 |
---|---|
1-500 | 100 |
500-1000 | 80 |
使用场景 | RTC SDK 方法(以 Android 端为例) | RTS SDK 方法(以 Android 端为例) | Native 端调用频率限制(次/秒) | Linux 端调用频率限制(次/秒) |
---|---|---|---|---|
点对点文本消息 | sendMessage | 100/秒 | 1600/3秒 | |
点对点二进制消息 | sendBinaryMessage | 100/秒 | 1600/3秒 | |
房间内广播文本消息 | sendRoomMessage | sendRoomMessage | 65/秒 | 1600/3秒 |
房间内广播二进制消息 | sendRoomBinaryMessage | sendRoomBinaryMessage | 65/秒 | 1600/3秒 |
设置应用服务器参数 | setServerParams | setServerParams | / | 5/秒 |
客户端给应用服务器发送文本消息 | sendServerMessage | sendServerMessage | 20/秒 | 150/秒 |
客户端给应用服务器发送二进制消息 | sendServerBinaryMessage | 20/秒 | 150/秒 |
对于每个 AppId,调用点对点消息、批量点对点消息与广播消息 OpenAPI 的频率上限之和是 500 次每秒。