Skip to content

[graphiql/toolkit] support graphql-sse #3750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update packages/graphiql-toolkit/src/create-fetcher/createFetcher.ts
  • Loading branch information
dimaMachina authored Aug 26, 2024
commit 596f47a7064d16cf5995161d0ce003859b6ac0d8
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
Loading