Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

eio-reconnect

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eio-reconnect

Reconnect code for engine.io-client

Source
npmnpm
Version
0.7.0
Version published
Maintainers
1
Created
Source

engine.io client reconnect

NPM version

Reconnect wrapper for engine.io-client - inspired by https://github.com/cayasso/engine.io-reconnect

Install

npm install eio-reconnect

Use

client = require 'engine.io-client'
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

io.on 'reconnecting', (attempts) -> console.log 'Reconnect attempt %d', attempts

io.on 'reconnect_timeout', (time) -> console.log 'Timeout after %dms', time

Testing

grunt test

Keywords

engine.io

FAQs

Package last updated on 21 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts