Skip to content

subscriptions-transport-ws is no longer maintained apollo client recommends graphql-ws #1351

Discussion options

You must be logged in to vote

From my understanding, this vue-apollo module its just an adapter to easily integrate graphql features into our vue components, therefore, if we want to use "graphql-ws" to create our subscription links, we just need to use the correct libraries that apollo already offers and set them up in our main file. What I think it actually needs to update, is the documentation since that one have examples that uses "WebSocketLink" which uses "subscriptions-transport-ws" instead of "GraphQLWsLink" which uses "graphql-ws": https://v4.apollo.vuejs.org/guide-composable/subscription.html#client-setup

Here is an example of a graphql wsLink using the new protocol in a vue project created from scratch with…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LiamKarlMitchell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants