graphql-playground icon indicating copy to clipboard operation
graphql-playground copied to clipboard

Ability to use graphql-ws instead of subscription-transport-ws

Open Amareis opened this issue 3 years ago • 6 comments

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.

Amareis avatar Nov 12 '20 12:11 Amareis

The community has moved to graphql-ws now, I think it would better for playground to move too.

Sytten avatar Mar 22 '21 18:03 Sytten

there's a PR to add this in graphql-playground-react https://github.com/graphql/graphql-playground/pull/1295

brettjashford avatar Apr 13 '21 20:04 brettjashford

Any updates?

maxpain avatar Jun 25 '21 10:06 maxpain

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.

faboulaws avatar Sep 16 '21 11:09 faboulaws

@acao , any updates on this?

jspizziri avatar Feb 08 '22 17:02 jspizziri

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/

elashpear avatar May 10 '22 20:05 elashpear