Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evo/chat-core

Package Overview
Dependencies
Maintainers
11
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evo/chat-core

core Besida module with base functional set for chat

  • 0.0.23
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-50%
Maintainers
11
Weekly downloads
 
Created
Source

@evo/chat-core

Evo package, that controls all data mutations that are common for chat (message send, history, read counters etc), provides simple api and bunch of utils. It based on swindonJS library, that manages WS connection. All request/response formats are handling by Besida.

Installation

npm install --save -E @evo/chat-core

Basic Usage

import { Swindon } from 'swindon';
import { 
    Besida,
    BESIDA_ROLE_COMPANY
} from '@evo/chat-core';

const swindonObj = Swindon('/ws');

const callBackObj = {
    error: () => action(),
    message: () => action(),
    counters: () => action(),
    registry: () => action(),
    ban: () => action(),
};

await swindonObj.waitConnected()

const b = new Besida(swindonObj, BESIDA_ROLE_COMPANY, callBackObj, IS_DEBUG);

await b.connect();

await b.chatList();

FAQs

Package last updated on 02 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc