upgrading apollo client to latest version for unsupported transport package with websocket subscriptions
See original GitHub issueDescribe the bug
apollographql/subscriptions-transport-ws is not supported, nor maintained. Please, use https://github.com/enisdenjo/graphql-ws.
To Reproduce using websocket based subscription queries
Expected behavior not working and suggests switching graphql-ws which latest version of apollo-client uses
Environment:
- @angular/cli@XX.YY.ZZ
- @angular/core@XX.YY.ZZ
- @apollo/client@XX.YY.ZZ
- apollo-angular@XX.YY.ZZ
- graphql@XX.YY.ZZ
- typescript@XX.YY.ZZ
Additional context
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Subscriptions in Apollo Server - Apollo GraphQL Docs
Enabling subscriptions ; 1. import { createServer } from 'http'; ; 2. import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer';.
Read more >Migrating to Apollo Client 3.0 - Apollo GraphQL Docs
This article walks you through migrating your application to Apollo Client 3.0 from previous versions of Apollo Client. To illustrate the migration process, ......
Read more >Migrating to Apollo Server 4 - Apollo GraphQL Docs
This packaging structure means that new integration package releases are lockstep versioned to Apollo Server itself, making it challenging to support major ...
Read more >Migrating to Apollo Server 3 - Apollo GraphQL Docs
This migration guide shows how to reenable subscriptions-transport-ws to make your transition from Apollo Server 2 to Apollo Server 3 as easy as...
Read more >WebSocket Link - Apollo GraphQL Docs
⚠️ We no longer recommend using WebSocketLink or the subscriptions-transport-ws library, because the library is not actively maintained. To execute ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Subscription queries by using
graphql-ws
withapollo-angular@3x
andangular@13x
indeed, it works 🤌 thanks dude. I’ll drop a simple sample here as well in case of someone needs, since It’s not documented.