graphql-playground
graphql-playground copied to clipboard
Ability to use graphql-ws instead of subscription-transport-ws
This issue pertains to the following package(s):
- [ ] GraphQL Playground - Electron App
- [ ] GraphQL Playground HTML
- [X] GraphQL Playground
- [ ] GraphQL Playground Express Middleware
- [ ] GraphQL Playground Hapi Middleware
- [ ] GraphQL Playground Koa Middleware
- [ ] GraphQL Playground Lambda Middleware
subscription-transport-ws is (sort of) deprecated now: https://github.com/apollographql/subscriptions-transport-ws#graphql-ws I think it's not really hard to implement grapqhl-ws support.
The community has moved to graphql-ws now, I think it would better for playground to move too.
there's a PR to add this in graphql-playground-react
https://github.com/graphql/graphql-playground/pull/1295
Any updates?
Ideally, the subscription client API should be a pluggable API. The subscription-transport-ws
can be the default Handler (or Interface implementation) for backward compatibility. graphql-ws or other implementation/transport (such as SSE) can be used if wanted.
@acao , any updates on this?
For those looking for an alternative client that does support graphql-ws until this issue is resolved, I recommend another FLOSS client called Altair: https://altair.sirmuel.design/