Get your Application Keys
Signup for CometChat and then:- Create a new app
- Head over to the Credentials section and note the App ID, Auth Key & Region
Add the CometChatCalls Dependency
Install the package as NPM module:- npm
- yarn
CometChatCalls class wherever you want to use CometChatCalls.
- JavaScript
- TypeScript
Initialize CometChatCalls
Theinit() method initializes the Calls SDK. It takes a CallAppSettings instance as its parameter.
CallAppSettingsBuilder accepts three settings:
| Setting | Description |
|---|---|
appID | Your CometChat App ID |
region | The region where your app was created |
host | (Optional) Custom client URL for dedicated deployments |
init() before any other CometChatCalls method — ideally on app startup.
- JavaScript
- TypeScript
APP_ID with your CometChat App ID and REGION with your App Region in the above code.
| Parameter | Description |
|---|---|
callAppSettings | An object of the CallAppSettings class |
Next Steps
Default Calling
Implement the complete ringing call flow
Direct Calling
Start call sessions without the ringing flow
Standalone Calling
Use Calls SDK without the Chat SDK
Calling Overview
Compare calling approaches and features