Read Streaming Data


#1

i am using api for data manupulation in meteor project.

the problem is when an GET api streams some data on every 2 second.

i am using
Meteor.http.call(“get”, “url”, function(err, res){
code here…
});

but this method holds the callback function execution till the api response completes sending data and then executes the code in callback function.

but i want to execute the callback function every 2 second (same as get api responds chunks) to execute function.

is there any way to read chunk stream reading or any package that help me this issue.

thank you.