Skip to content

Commit

Permalink
Update packages/graphiql-toolkit/src/create-fetcher/createFetcher.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina authored Aug 26, 2024
1 parent b1c6bcc commit 596f47a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function createGraphiQLFetcher(options: CreateFetcherOptions): Fetcher {
: false;

if (isSubscription) {
if (options.sseUrl) {
if (!options.subscriptionUrl.startsWith('ws')) {
const sseFetcher = await createSseFetcher({ url: options.sseUrl });
return sseFetcher(graphQLParams);
}
Expand Down

0 comments on commit 596f47a

Please sign in to comment.