Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Faster Integration with UI KitsIf you’re using CometChat UI Kits, voice and video calling can be quickly integrated:
- Incoming & outgoing call screens
- Call buttons with one-tap calling
- Call logs with history
Install the SDK
Install the CometChat Calls SDK using npm or yarn:- npm
- yarn
Import the SDK
Import theCometChatCalls class in your JavaScript or TypeScript file:
Initialize CometChat Calls
Theinit() method initializes the SDK with your app credentials. Call this method once when your application starts.
CallAppSettings
The initialization requires a configuration object with the following properties:| Parameter | Type | Required | Description |
|---|---|---|---|
appId | String | Yes | Your CometChat App ID |
region | String | Yes | Your app region (us, eu, or in) |
init() method returns an object with:
| Property | Type | Description |
|---|---|---|
success | Boolean | true if initialization succeeded |
error | Object | null | Error details if initialization failed |
Browser Requirements
The Calls SDK requires a modern browser with WebRTC support:| Browser | Minimum Version |
|---|---|
| Chrome | 72+ |
| Firefox | 68+ |
| Safari | 12.1+ |
| Edge | 79+ |
HTTPS is required for camera and microphone access in production. Localhost is exempt from this requirement during development.