Skip to content
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

Add support for the GraphQL-WS Subprotocol #238

Open
artran opened this issue Jul 4, 2023 · 0 comments
Open

Add support for the GraphQL-WS Subprotocol #238

artran opened this issue Jul 4, 2023 · 0 comments

Comments

@artran
Copy link
Contributor

artran commented Jul 4, 2023

Add support for the GraphQL-WS Subprotocol

Reason for request

The current implementation of the WebSocket endpoint can only handle the Apollo-WS transport, which has been deprecated. As new server libraries are moving over to the GrapQL-WS transport it would be really helpful if the WebSocket endpoint could also support the newer protocol.

What is required

The two protocols are actually very similar and supporting both is quite trivial. In order to prove it was possible I have implemented a fix in a fork of this project and used it against a new server.

Reference implementation

I've started a discussion about this, which includes all the details: #237

The single commit to implement my changes are here: artran@60a93b5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant