Skip to content

dominictarr/reconnect-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published