quiq-socket
v0.4.6
Published
WebSocket API wrapper with automatic retry handling and heartbeat
Downloads
18
Readme
Quiq-Socket
WebSocket wrapper with retry and heartbeat.
Installation
npm i --save quiq-socket
or
yarn add quiq-socket
Usage
import QuiqSocket from 'quiq-socket';
new QuiqSocket()
.withUrl('https://myapp.com/socket')
.addEventListener('message', message => {
console.log(message);
});
Many methods and options are available, and are documented inline in src/quiqSocket.js
.
License
MIT