You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR enables passing the `RequestInit` options for `fetch` to individual
`HermesClient` methods.
This PR also fixes merging `AbortControllers`, which was previously not done
correctly (but also no way to pass an `AbortController` was actually exposed via
the public API, so this is not a breaking change), and upgrades typescript to
the catalog version, which is required to support `AbortSignal.any`.
Copy file name to clipboardExpand all lines: apps/hermes/client/js/src/HermesClient.ts
+25-26Lines changed: 25 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -64,22 +64,16 @@ export class HermesClient {
64
64
options?: RequestInit,
65
65
retries=this.httpRetries,
66
66
backoff=100+Math.floor(Math.random()*100),// Adding randomness to the initial backoff to avoid "thundering herd" scenario where a lot of clients that get kicked off all at the same time (say some script or something) and fail to connect all retry at exactly the same time too
0 commit comments