Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(core): Update subscriptions instructions for graphql-ws (#2987)

authored by

Phil Pluckthun and committed by
GitHub
e06ba6f9 3cdb3f65

+4 -1
+4 -1
docs/advanced/subscriptions.md
··· 59 59 subscriptionExchange({ 60 60 forwardSubscription: (operation) => ({ 61 61 subscribe: (sink) => ({ 62 - unsubscribe: wsClient.subscribe(operation, sink), 62 + unsubscribe: wsClient.subscribe( 63 + { query: operation.query, variables: operation.variables }, 64 + sink 65 + ), 63 66 }), 64 67 }), 65 68 }),