I am working on a project that makes heavy use of REST apis ( youtube, wikipedia, etc) through HTTP package, but is becoming unefficient due to the lack of an abort or stop method
Which options (workarounds? hacks? Npm packages) i have to get through this? BTW all calls are made on server side
I’ve just had a need to allow a user to abort an upload via HTTP and was looking for an abort function. It seems Meteor doesn’t have one, which seems strange. Is there a reason for not implementing one?
well, for larger uploads it is always better to use some chunked upload, so pure http is not always best.
Or you can always loop many HTTP’s over chunks of files as sync, than u will be able to cancel in between HTTP’s.
But I am working with YT and FB api too and only thing I was feeling like I need some cancel was due to blocking method call over DDP. And that is by default.
So if you want user to do more operations at once, you can use this.unblock and than methods will not block DDP and let the other method call to be executed in parallel from same client.