superagent icon indicating copy to clipboard operation
superagent copied to clipboard

How to receive multiple responses from just one request?

Open jaloplo opened this issue 6 years ago • 1 comments

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.

jaloplo avatar Feb 09 '19 15:02 jaloplo

Will this help? https://visionmedia.github.io/superagent/#progress-tracking

wertlex avatar Apr 16 '19 17:04 wertlex