-
Notifications
You must be signed in to change notification settings - Fork 738
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
graphql-ws Protocol Support #1622
Comments
Can you help me understand what changes to our existing websocket library would be necessary for this? I know we're working on trying to figure some things out with WebSockets, but I think if there's a way to make this doable without having to build a completely parallel architecture we should at least consider it. If it does require a completely parallel architecture that's a bit of a different question, though. |
Here's a quick'n'dirty mapping of the two protocols based on their protocol documents:
I think a lot of the differences are in the nuances--graphql-ws tries to be more robust in its protocol design so there are definitely details not included here, but for the most part the protocols are fairly similar. |
OK. The next step would probably be finding a |
If you point me towards the existing server I'd be more than happy to put together the |
Has there been any progress on this? I am very interested in graphql-ws support for Apollo on iOS. |
I'm dealing with other stuff at the moment - @casey-chow Were you ever able to get a look at this? |
I am very interested in graphql-ws support for Apollo for Android. |
Hi @dchappelle, I'd recommend checking out the Android repo's issues and opening an issue if you can't find one - this is the iOS repo 😇. |
Has there been any progress on graphql-ws support for Apollo on iOS? |
Any updates on this feature? It works for me with these basic changes. graphql-ws-patch.txt Apollo Android seems to have already implemented it in v3.0.0-alpha01 release. |
Hi 👋🏻
|
Hi @calvincestari, We have been using the changes in the patch that I mentioned earlier to support graphql-ws and it is working fine. I see that this feature is now scheduled for 0.51.0 milestone. Please let me know if you need any help in verifying your changes. |
That's correct @phanikavi. We're storming towards an imminent 1.0 alpha release so the graphql-ws work is slightly delayed. I think the patch will be a great starting point though. We'll get to it next week, thanks for the offer to verify changes. |
@phanikavi I've just created PR #2168 if you're still interested in verifying the changes with your environment. |
awesome, @calvincestari these changes work fine in our environment. |
I think that the CONTEXT: After digging in I saw that the server get's a message of |
I'll dig into this this week @CureleaAndrei. |
Thanks! |
@CureleaAndrei, sorry this took a bit longer than I had planned. PR #2320 is up which should fix the behaviour. Please give it a test if you've got the time - thanks. |
Feature request
Enable support for the graphql-ws protocol so servers can leverage the security and maintenance improvements.
Motivation
subscriptions-transport-ws has fallen into disrepair in recent years, and its successor, graphql-ws, introduces a completely new protocol which would need to be implemented for compatibility. I've been seeing a lot of issues with the server library and would like not to fork subscriptions-transport-ws 😅
The text was updated successfully, but these errors were encountered: