superagent
superagent copied to clipboard
How to receive multiple responses from just one request?
Hi all,
I'm working with superagent in a personal project and am implementing an API method that executes a long process. I send response messages every iteration of the process to inform the client but I'm not able to update the browser with the proper information until the end of the process when response ends that shows all messages. I would like to know if superagent library is able to do this kind of stuff.
As a background, I'm developing my API in node.js and send iterative messages with res.write() method under Express web server.
Will this help? https://visionmedia.github.io/superagent/#progress-tracking