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.
1 parent 07e12ce commit 491e77cCopy full SHA for 491e77c
.changeset/stupid-cats-sing.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphql-tools/url-loader': patch
3
4
+
5
+enhance(url-loader): start legacy subscriptions connection lazily
packages/loaders/url/src/index.ts
@@ -368,6 +368,7 @@ export class UrlLoader implements DocumentLoader<LoadFromUrlOptions> {
368
url: WS_URL,
369
webSocketImpl,
370
connectionParams,
371
+ lazy: true,
372
});
373
return async ({ document, variables }: { document: DocumentNode; variables: any }) => {
374
const query = print(document);
@@ -401,6 +402,7 @@ export class UrlLoader implements DocumentLoader<LoadFromUrlOptions> {
401
402
WS_URL,
403
{
404
405
406
},
407
webSocketImpl
408
);
0 commit comments