graphql-spring-boot icon indicating copy to clipboard operation
graphql-spring-boot copied to clipboard

Support graphql-ws

Open bostandyksoft opened this issue 2 years ago • 5 comments

Hi.

I tried to use this library with JS client. All tutorials about it said, that need use "graphql-ws" library for subscriptions. But all worked examples of servers with this library used "subscriptions-transport-ws".

NPM install for this JS-library says

The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.co
m/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md

So I have question - I there is a way to switch library WebSocket support to graphql-ws either - do you have plan to support it?

I've added my client. To checking it on your own project, you can change parts of code under //TODO dist.zip

Best regards. Alexey

bostandyksoft avatar Apr 26 '22 02:04 bostandyksoft