Skip to content

ankitshantiinfotech/javascript-chat-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



CometChat Pro enables you to add voice, video & text chat for your website & app.

Platform Platform

Quick Start

This guide demonstrates how to add chat to a Javascript application using CometChat. Before you begin, we strongly recommend you read the Key Concepts guide.

Get your Application Keys

Signup for CometChat and then:

  1. Create a new app: Enter a name & hit the + button
  2. Head over to the API Keys section and click on the Create API Key button
  3. Enter a name and select the scope as Auth Only
  4. Now note the API Key and App ID

Add the CometChat Dependency

NPM

First, install via npm

Shell

For v1.8.x and older:

npm install @cometchat-pro/chat@1.8.14 --save

For v2.0.x:

npm install @cometchat-pro/chat@2.0.4 --save

Then, import the CometChat object wherever you want to use CometChat

JavaScript

import { CometChat } from "@cometchat-pro/chat" 

HTML (via CDN)

Include the CometChat Javascript library in your HTML code

For v1.8.x and older:

<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/chat@1.8.14/CometChat.js"></script>

For v2.0.x:

<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/chat@2.0.4/CometChat.js"></script>

To learn more, please refer to our Javascript Developer Documentation:

For v1.8.x and older: Documentation

For v2.0.0-beta: Documentation

About

Javascript Chat SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published