An open API service indexing awesome lists of open source software.

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

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
```