2.0.1 • Published 4 years ago

@cometchat-pro/ionic-chat v2.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

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/@cometchat-pro/chat@1.8.14 --save

For v2.0.x:

npm install @cometchat-pro/chat --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/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