Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@linagora/esn-chat-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linagora/esn-chat-client

Chat Client for OpenPaaS linagora.esn.chat Module

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

esn-chat-client

Client library for linagora.esn.chat module.

Install

npm install @linagora/esn-chat-client

Usage

const WebsocketClient = require('@linagora/esn-chat-client').WebsocketClient;

const client = new WebsocketClient({token, url, userId}));

client.on('message', message => {
  console.log('Got a message on channel', message);
});

client.connect();

or if you do not have your token or userId

const factory = require('@linagora/esn-chat-client').factory;

factory.get({url, username, password}).then(client => {
  client.on('message', message => {
    console.log('Got a message on channel', message);
  });

  client.connect();
});

Keywords

chat

FAQs

Package last updated on 14 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts