npm i --save quiq-socket
or
yarn add quiq-socket
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
.
MIT