-
Notifications
You must be signed in to change notification settings - Fork 134
Support graphql-transport-ws websocket protocol #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…previous dependant code
…pWebSocket into two classes (one per protocol) that inherit from BaseGraphQLHttpWebSocket
… +semver: breaking
I think that's a good idea. I could implement the same in GraphQL.NET Server 7, although it is not so now. |
Just FYI, when server-side keep-alive is enabled within GraphQL.NET Server 7, only pongs are sent, and only when the specified amount of time has elapsed from the last sent or received message. |
Any plans to support protocol auto negotiations @rose-a ? |
Already implemented and enabled by default in v6.0.0 |
This PR picks up #493, rebases on current master, adds unit tests, resolves the errors and does some refactoring.
Not yet implemented:
@Shane32 Regarding ping/pong whats your opinion on how the payload of a ping should be handled? Its not explicitly stated in the spec, but my current implementation reflects the payload of the ping request in the corresponding pong request.
Since the spec explicitly allows sending pongs at any time, this allows the server to correlate pongs with sent pings to use this for metrics etc.