Jake Trent

Tag: Websockets

Pipe stdout to SocketIO

When you run a shell script or some other process from NodeJs and want to get the output in a stream to a client, you can redirect or pipe the output from the process that originally outputs to stdout into your socketio stream.

Read more