quiq-socket
v0.4.8
Published
WebSocket API wrapper with automatic retry handling and heartbeat
Downloads
63
Readme
Quiq-Socket
WebSocket wrapper with retry and heartbeat.
Installation
npm i --save quiq-socketor
yarn add quiq-socketUsage
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
