The Calls SDK handles the actual call session. For call signaling (ringing, accept, reject), use the CometChat Chat SDK’s calling features.
Overview
Call flow with ringing:- Initiator sends a call request via Chat SDK
- Receiver gets notified of incoming call
- Receiver accepts or rejects the call
- Both parties join the call session using Calls SDK
Prerequisites
Install both SDKs:Initialize Both SDKs
Initiate a Call
Start an outgoing call:timeout parameter (in seconds) as the second argument to initiateCall().
- JavaScript
- TypeScript
| Parameter | Type | Description |
|---|---|---|
call | Call | The call object created with receiver ID, call type, and receiver type. |
timeout | number | Optional. The ringing duration in seconds before an unanswered call is automatically cancelled. Default: 45. |