We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
opts.fetch
1 parent b247c39 commit 056ce81Copy full SHA for 056ce81
src/client/sse.ts
@@ -81,7 +81,7 @@ export class SSEClientTransport implements Transport {
81
this._url = url;
82
this._resourceMetadataUrl = undefined;
83
84
- const actualFetch = opts?.eventSourceInit?.fetch ?? fetch;
+ const actualFetch = opts?.eventSourceInit?.fetch ?? opts?.fetch ?? fetch;
85
this._eventSourceInit = {
86
...(opts?.eventSourceInit ?? {}),
87
fetch: (url, init) => this._commonHeaders().then((headers) => actualFetch(url, {
0 commit comments