pipe-to-websocket
v1.0.6
Published
Pipe stdout to websocket server
Downloads
3
Readme
pipe-to-websocket |
Description:
Takes the standard input and pipes it to websocket to be used
Install:
npm install -g pipe-to-websocket
Usage:
tail -f /var/log/nginx/error.log | p2w
Config
Default port that websocket listens to is 8090
but can be configured as
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.