Skip to content

shri3k/pipe-to-websocket

Repository files navigation

pipe-to-websocket | Build Status Coverage Status

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.

Releases

No releases published

Packages

No packages published