joostvunderink / angular-jsonrpc-client

A JSON-RPC 2.0 client for AngularJS
MIT License
26 stars 20 forks source link

ability to kill a request #14

Closed costinh closed 8 years ago

costinh commented 8 years ago

I couldn't find any info about killing an already started request. Is this possible? Thanks

joostvunderink commented 8 years ago

This is currently not possible, but a very reasonable feature request. Assuming $http supports cancelling a request, I'll implement this.

costinh commented 8 years ago

You can use the timeout property of the $http's config object.

joostvunderink commented 8 years ago

This has been implemented in 0.5.0: https://github.com/joostvunderink/angular-jsonrpc-client/releases/tag/0.5.0