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