Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

reconnect-widget

A widget to display connection status, use with reconnect-core.

Green means connected, red means disconnected. If disconnected, the number is countdown to the next connection attempt.

var widget = require('reconnect-widget')

//use reconnect-core with shoe
var reconnect = require('reconnect-core')(require('shoe'))

var r = reconnect(function (stream) {
  ...
})

//add the widget to the page.
document.body.appendChild(widget(r))

License

MIT

Something went wrong with that request. Please try again.