https://github.com/shri3k/pipe-to-websocket
pipe stdout to websocket
https://github.com/shri3k/pipe-to-websocket
logging pipe websockets
Last synced: about 1 year ago
JSON representation
pipe stdout to websocket
- Host: GitHub
- URL: https://github.com/shri3k/pipe-to-websocket
- Owner: shri3k
- License: mit
- Created: 2016-11-26T07:29:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-27T06:30:12.000Z (over 9 years ago)
- Last Synced: 2024-04-24T14:30:03.673Z (about 2 years ago)
- Topics: logging, pipe, websockets
- Language: JavaScript
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# pipe-to-websocket | [](https://travis-ci.org/shri3k/pipe-to-websocket) [](https://coveralls.io/github/shri3k/pipe-to-websocket?branch=master)
## Description:
Takes the standard input and pipes it to websocket to be used
## Install:
```sh
npm install -g pipe-to-websocket
```
## Usage:
```sh
tail -f /var/log/nginx/error.log | p2w
```
### Config
Default port that websocket listens to is `8090` but can be configured as
```sh
tail -f /var/log/nginx/error.log | SOCKET_PORT=8088 p2w
```
## Example:
A client example is in `client/index.html` showing how to use it.