-
There doesn't seem to be any documentation on how to connect manually, without using the client side library. When I connect using the GraphQL JS library it works, so the server is working 100%. When I connect I get the this message from the server. I'm connecting with the following settings.
Any ideas where I'm going wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Yes there is, the GraphQL over WebSocket Protocol. Just by looking at your example, I see you're not implementing the protocol properly. For starters, the This library uses the |
Beta Was this translation helpful? Give feedback.
-
@enisdenjo ah we meet again. Thank you for your response, you are a life saver. Seems we get a little further this time. Not sure what I'm missing. It seems to disconnect right away. hmm
|
Beta Was this translation helpful? Give feedback.
Yes there is, the GraphQL over WebSocket Protocol.
Just by looking at your example, I see you're not implementing the protocol properly. For starters, the
graphql-ws
subprotocol is used by the deprecatedsubscriptions-transport-ws
.This library uses the
graphql-transport-ws
subprotocol (I couldn't name the subprotocolgraphql-ws
too since the deprecated library already reserved it and the two protocols are different).