Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
wireclient uses fetch() if available, instead of XHR #1132
The primary need for this is running inside a Service Worker, where XHR is unavailable. It's also of use in Node, when a fetch() implementation is preferred over an XHR.
Secondarily, it allows timed-out requests to be aborted at the network level, so they don't continue to consume resources.