Lightweight, thoroughly tested WebSocket client with features like automatic reconnection
Install with yarn
:
$ yarn add wslib
Or, npm
if you prefer:
$ npm install --save wslib
Import the client and create a new instance:
import { WebSocketClient } from 'wslib';
See the full documentation here.
MIT License. See LICENSE file for details.