Skip to content

Commit

Permalink
docs: Added missing createClient import in example when creating Grap…
Browse files Browse the repository at this point in the history
…h… (#1513)
  • Loading branch information
mekraldi committed Nov 29, 2023
1 parent d953688 commit 9d8cc79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/src/guide-composable/subscription.md
Expand Up @@ -82,6 +82,7 @@ We need to either use the `GraphQLWsLink` or the `HttpLink` depending on the ope
```js
import { HttpLink, split } from "@apollo/client/core"
import { GraphQLWsLink } from "@apollo/client/link/subscriptions"; // <-- This one uses graphql-ws
import { createClient } from "graphql-ws";
import { getMainDefinition } from "@apollo/client/utilities"

// Create an http link:
Expand Down

0 comments on commit 9d8cc79

Please sign in to comment.