Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jan 23, 2025
1 parent edb63e8 commit 56219f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/graphiql-toolkit/src/create-fetcher/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@ export async function getWsFetcher(
return createWebsocketsFetcherFromClient(options.wsClient);
}
if (options.subscriptionUrl) {
// @ts-expect-error: todo enable ES target that has entries on headers
const fetcherOptsHeaders = new Headers(
fetcherOpts?.headers ?? {},
// @ts-expect-error: todo enable ES target that has entries on headers
).entries();

return createWebsocketsFetcherFromUrl(options.subscriptionUrl, {
...options.wsConnectionParams,
...Object.fromEntries(fetcherOptsHeaders),
Expand Down

0 comments on commit 56219f0

Please sign in to comment.