gusher.cluster client


Keywords
gusher
License
MIT
Install
npm install gusher-js@1.0.4

Documentation

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"