Overview
Enable the Chatroom Custom Attributes (KV) service to set custom key-value attributes in a specific chatroom.
In a live voice streaming scenario, you can use this feature to record the attributes of each microphone position in the chatroom. In a card game like Mafia, you can use it to track user roles and game status.
Once the service is enabled, both the client and the server can set custom chatroom attributes.
- Server: Set Chatroom Custom Attributes (KV)
- Client: Setting a Single Attribute
Configure chatroom custom attribute callbacks
RC can sync all chatroom attribute changes (set, delete, delete all, etc.) in your app to a specified URL. This helps your app’s business server stay informed about changes in chatroom attributes. For more details, see the server documentation on Chatroom Attribute Synchronization (KV).
How to enable
Go to the Basic features page in the Console, confirm that the correct app name and environment (Development/Production) are selected, and enable the Chatroom custom attributes service.
If you want the RongCloud server to sync all chatroom attribute changes to your specified address, enter a callback URL and click Set to save.
Tags: set KV, microphone position changes
If you have any questions, feel free to submit a ticket to us.