Takes the standard input and pipes it to websocket to be used
npm install -g pipe-to-websocket
tail -f /var/log/nginx/error.log | p2w
Default port that websocket listens to is 8090
but can be configured as
tail -f /var/log/nginx/error.log | SOCKET_PORT=8088 p2w
A client example is in client/index.html
showing how to use it.