I spawned the following child: var spw = spawn(\'ping\', [\'-n\',\'10\', \'127.0.0.1\']) and I would like to receive the ping results on the client side (
var spw = spawn(\'ping\', [\'-n\',\'10\', \'127.0.0.1\'])
If you are using Google Chrome, changing the content-type to "text/event-stream" does what your looking for.
res.writeHead(200, { "Content-Type": "text/event-stream" });
See my gist for complete example: https://gist.github.com/sfarthin/9139500