Skip to content

Commit 596f47a

Browse files
authored
Update packages/graphiql-toolkit/src/create-fetcher/createFetcher.ts
1 parent b1c6bcc commit 596f47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphiql-toolkit/src/create-fetcher/createFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function createGraphiQLFetcher(options: CreateFetcherOptions): Fetcher {
4343
: false;
4444

4545
if (isSubscription) {
46-
if (options.sseUrl) {
46+
if (!options.subscriptionUrl.startsWith('ws')) {
4747
const sseFetcher = await createSseFetcher({ url: options.sseUrl });
4848
return sseFetcher(graphQLParams);
4949
}

0 commit comments

Comments
 (0)