/websocket-stream-ping-pong

websocket-stream addon to avoid disconnections

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Build Status

Plays insane ping pong. Never loses. This to avoid a disconnect after an inactivity timeout.

For static servers there is no timeout but if your app is proxied behind nginx, then the default timeout is set to 60s, see proxy_read_timeout option at http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout

Works on websocket streams instantiated by https://github.com/maxogden/websocket-stream.

Installation

$ npm i -S websocket-stream-ping-pong

Usage

...

API

...

License

BSD © Michael Heuberger