Skip to content

Commit 9d8cc79

Browse files
authored
docs: Added missing createClient import in example when creating Graph… (#1513)
1 parent d953688 commit 9d8cc79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/docs/src/guide-composable/subscription.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ We need to either use the `GraphQLWsLink` or the `HttpLink` depending on the ope
8282
```js
8383
import { HttpLink, split } from "@apollo/client/core"
8484
import { GraphQLWsLink } from "@apollo/client/link/subscriptions"; // <-- This one uses graphql-ws
85+
import { createClient } from "graphql-ws";
8586
import { getMainDefinition } from "@apollo/client/utilities"
8687

8788
// Create an http link:

0 commit comments

Comments
 (0)