I'm trying to send a series of status messages from Express to AngularJS using GET, as the status messages appear. I'm able to store the messages and then send them all at once, but I would like to send the messages to Angular as the stdout is created.
When i use res.send or res.json I get the Error: Can't set headers after they are sent. error, since they are calling res.end, but when I use res.write it does not actually write the data to angular until res.end is called.
Is there any way to get data to Angular from Node without calling res.end/resetting the res headers?