I have a node js server that executes an exe file that outputs data in chunks:
function requestHandler(request, response) { childproc = process.spawn("