Skip to main content
This guide walks you through installing the CometChat Calls SDK and initializing it in your web application.

Install the SDK

Install the CometChat Calls SDK using npm or yarn:

Import the SDK

Import the CometChatCalls class in your JavaScript or TypeScript file:

Initialize CometChat Calls

The init() 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:
The init() method returns an object with:

Browser Requirements

The Calls SDK requires a modern browser with WebRTC support:
HTTPS is required for camera and microphone access in production. Localhost is exempt from this requirement during development.

Permissions

The browser will prompt users for camera and microphone permissions when joining a call. Ensure your application handles permission denials gracefully.