@ayezee/zews
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Zews

AyeZee's WebSocket Client

Installation

$ npm add @ayezee/zews

# or yarn
$ yarn add @ayezee/zews

Example

import {Zews} from "@ayezee/zews";

const zews = new Zews("wss://echo.websocket.org", {
  heartbeats: false,
  onMessage(message) {
    console.log(message);
  }
});

zews.send({
  type: "hello",
  broadcast: true
});

Readme

Keywords

none

Package Sidebar

Install

npm i @ayezee/zews

Weekly Downloads

2

Version

0.0.1

License

none

Unpacked Size

42.8 kB

Total Files

10

Last publish

Collaborators

  • kocisov