Package Manager
Install the SDK using npm:CometChat object wherever you need it:
CDN
Include the CometChat JavaScript library directly in your HTML:CometChat is available as a global variable.
Get Your Credentials
Before initializing the SDK, get your credentials from the CometChat Dashboard:- Sign up or log in
- Create a new app (or use an existing one)
- Go to API & Auth Keys and note your:
- App ID
- Region
- Auth Key
Next Steps
Initialization
Configure and initialize the SDK
SSR Compatibility
Setup for Next.js, Nuxt, and Ionic