https://github.com/binarykitchen/websocket-stream-ping-pong
websocket-stream addon to avoid disconnections
https://github.com/binarykitchen/websocket-stream-ping-pong
Last synced: about 1 year ago
JSON representation
websocket-stream addon to avoid disconnections
- Host: GitHub
- URL: https://github.com/binarykitchen/websocket-stream-ping-pong
- Owner: binarykitchen
- License: bsd-2-clause
- Created: 2015-07-31T02:13:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T02:20:09.000Z (over 10 years ago)
- Last Synced: 2025-02-09T08:43:12.159Z (over 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/binarykitchen/websocket-stream-ping-pong)
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
```bash
$ npm i -S websocket-stream-ping-pong
```
## Usage
```javascript
...
```
## API
...
## License
BSD © [Michael Heuberger](http://www.binarykitchen.com)