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
Ringing users? On the web, an incoming call reaches an open tab through the Chat SDK’s call listener, so a
ringing app also needs
@cometchat/chat-sdk-javascript, initialized and logged in as the same user. The Calls SDK
starts, prepares, joins and ends the call. See Ringing.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: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.