Replies: 1 comment
-
While a good idea, it goes beyond the scope of graphql-ws. A lot of code needs to be added for supporting custom messages and handling them both on the client and server side - I don't think it's worth it. As an alterantive, you can use the ping/pong messages and it's payload to pass metadata between. Converted this to an "Idea" discussion. Let's see... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Story
As a server developer who is designing their own backend using GraphQL
I want the ability to use a single graphql-ws websocket for most of my API calls. I would like to additionally have custom messages that are not related to GraphQL coming through this channel.
So that I can reuse this websocket for non-graphql tasks and still benefit from the rest of the protocol and keep-alive logic.
Acceptance criteria
Beta Was this translation helpful? Give feedback.
All reactions