How to adjust the chatroom auto-destroy timeout?

Chatrooms are automatically destroyed by default. If no messages are sent and no members join a chatroom within a specified period (1 hour by default), the RC server will remove all members and destroy the chatroom. You can customize the Chatroom auto-destroy timeout to an integer between 1 and 24 hours. This is an app-level setting.

When a chatroom is destroyed, a notification is sent to its members, allowing the client app to handle this event (this is dependent on the SDK version).

Each chatroom has a sessionId that is constant for its lifetime. A new sessionId is generated when the chatroom is recreated. This helps clients differentiate between sessions if the same chatroom ID is reused.

How to enable

Go to the Basic features page in the developer console, confirm that the correct app name and environment (Development/Production) are selected, and enable the Chatroom auto-destroy timeout service.

Related information

In addition to the app-level setting, you can also configure the auto-destroy behavior for specific chatrooms:

  1. You can set the Auto-destroy type to either Destroy after inactivity or Destroy at a fixed time. The duration can be extended from the default of 1 hour up to 7 days.

  2. To keep a chatroom alive permanently, you can enable Chatroom keepalive in the Console. You can set up to 5 chatrooms for keep-alive. Contact our sales manager if you need more.

Tags: keepalive, chatroom keepalive, chatroom destruction, why are chatrooms auto-destroyed, why was I kicked from the chatroom, how to keep a chatroom from being destroyed

If you have any questions, feel free to submit a ticket to us.