https://github.com/caledoniaproject/stdin2websocket
Read whatever available from stdin and deliver it to all websocket peers
https://github.com/caledoniaproject/stdin2websocket
Last synced: about 2 months ago
JSON representation
Read whatever available from stdin and deliver it to all websocket peers
- Host: GitHub
- URL: https://github.com/caledoniaproject/stdin2websocket
- Owner: CaledoniaProject
- Created: 2016-12-08T10:51:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-08T10:57:46.000Z (over 9 years ago)
- Last Synced: 2026-01-02T16:46:38.254Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stdin2websocket
Read whatever is available from stdin, line-by-line, and deliver them to all connected websocket peers.
# Installation
The programs depends on the two following dependencies
```
npm install nodejs-websocket readline
```
# Usage
The websocket server listens on port `8300` by default, you may change it in the source code.
After which you may simply start the server with a pipe, e.g
```
some-long-running-commands | node main.js
```