cwc-sdk

1.0.14 • Public • Published

Chat web SDK NPM version NPM monthly downloads NPM total downloads

Install

Install with npm:

$ npm install --save cwc-sdk

or yarn

$ yarn add cwc-sdk

Usage

Example

var initChatSdk = require("cwc-sdk")

const cws = initChatSdk("https://chat-web-sdk-server:8070/", {userId: "some.guy"});

cws.onReady = async function() {
  await cws.setCustomer({
    segment: "private"
  })
  cws.send({type: "text", text: "hei"});
}

Readme

Keywords

none

Package Sidebar

Install

npm i cwc-sdk

Weekly Downloads

2

Version

1.0.14

License

ISC

Unpacked Size

53.5 kB

Total Files

9

Last publish

Collaborators

  • a-ader
  • kristjanulst