gusher-js
v1.1.0
Published
gusher.cluster client
Downloads
31
Readme
gusher-js
This is a gusher client.
Install with:
npm install gusher-js
Usage
const gusher = new Gusher('app_name', {
url: 'url',
token: 'token'
})
gusher.connect()
const channel = gusher.subscribe('channel')
channel.bind('event', (data) => {
console.log('Received from channel:', data)
})
Debug
Open browser's Developer Edition, change to console panel, then type
localStorage.debug = "Gusher"