node package manager


Reconnect code for client reconnect

Reconnect wrapper for - inspired by

npm install eio-reconnect
client = require ''
reconnect = require 'eio-reconnect'
# Add reconnect functionality to eio 
eio = reconnect client 'ws://localhost:8080'
eio.on 'reconnect'(attempts) -> console.log 'Reconnected after %d attempts'attempts
eio.on 'reconnecting'(attempts) -> console.log 'Reconnect attempt %d'attempts
eio.on 'reconnect_timeout'(time) -> console.log 'Timeout after %dms'time
eio.on 'reconnect_error'(error) -> console.log 'Error while reconnecting'error
grunt test
  1. Create your feature branch (git checkout -b my-new-feature)
  2. Commit your changes (git commit -am 'Added some feature')
  3. Push to the branch (git push origin my-new-feature)
  4. Create new Pull Requests