Quick Reference for AI Agents & Developers
- Default idle timeout: 180 seconds (3 minutes) alone in a session
- Warning dialog appears at 120 seconds with stay/leave options
- Auto-terminates after 60 more seconds if no action taken
- Listen for
onSessionTimeoutevent to handle auto-termination - Customize timeout with
setIdleTimeoutPeriod(seconds)in CallSettings (v4.1.0+)
Overview
CometChat Calls SDK provides a mechanism to handle session timeouts for idle participants. By default, if a participant is alone in a call session for 180 seconds (3 minutes), the following sequence is triggered:- After 120 seconds of being alone in the session, the participant will see a dialog box
-
This dialog provides options to either:
- Stay in the call
- Leave immediately
- If no action is taken within the next 60 seconds, the call will automatically end