wanted to ask about the current state of the Dgraph graphql websocket protocol usage.
I use the subscriptions-transport-ws library for subscriptions, but get always the warning, that it is deprecated and I should update to graphql-ws. Last time I tried switching on the client, Dgraph did not accepted the connection.
Is the switch coming on Dgraph, or is it actually not that important? Or it is already supported but I made a mistake?
Hey, nice to hear
Currently it blocks the graphql subscriptions, because we use JWT tokens that refreshes in the background. Sadly subscriptions-transport-ws has a problem with exchanging the token by reconnection and keeping the subscriptions open: How to restart connection with new connection params? · Issue #171 · apollographql/subscriptions-transport-ws · GitHub
Workaround is to repeat a query request each few seconds to simulate a subscription query. I found no working solution.