wslib

Lightweight, thoroughly tested WebSocket client with features like automatic reconnection

Usage no npm install needed!

<script type="module">
  import wslib from 'https://cdn.skypack.dev/wslib';
</script>

README

WebSocket Client

Lightweight, thoroughly tested WebSocket client with features like automatic reconnection


npm version build status coverage status

Installation

Install with yarn:

$ yarn add wslib

Or, npm if you prefer:

$ npm install --save wslib

Usage

Import the client and create a new instance:

import { WebSocketClient } from 'wslib';

Documentation

See the full documentation here.

License

MIT License. See LICENSE file for details.