-
Notifications
You must be signed in to change notification settings - Fork 85
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
websocket / subscriptions support? #26
Comments
Not yet, @netogallo seems to be working on it, as per #23. I'm busy with some work-related stuff, but as soon as things calm down I'd like to implement that on top of |
I'd also be very interested in subscription support! Going to need it one way or the other :D |
I just published a python GraphQL client library supporting subscriptions over websocket. Check it out here. Contributions and comments are most welcome. |
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and collects results to a list. The list can then be interpreted to Operation based objects by: [(op + result) for result in endpoint(op)] Fixes profusion#26.
The referenced PR implements a synchronous websocket endpoint that returns all the data objects after completion. Async may make more sense for some, but this fits our use case at the moment. |
hi all, the PR #55 is great and about to be merged, but I have a question to users (asked there, but you can also answer here): Is it better to accumulate a list during the whole session, until On a related question: should we create the websocket internally and execute one single query as it's implemented in #55, or should we create it in 2 phases:
This would not be required for "app with one subscription" (as it would be the same), but if we do have multiple subscriptions, or want to interleave multiple queries/mutations/subscriptions in the same channel (saving the connection time for each), it would be required. Move to |
Implement the apollo graphql-ws protocol as a subclass of BaseEndpoint. Allows for both 'normal' queries as well as subscriptions to be executed over a websocket and returns a generator of results. The generator can then be interpreted to Operation based objects by: ((op + result) for result in endpoint(op)) Fixes profusion#26.
merged with single query support. We can extend it to support multi query later. |
Hi there,
I was wondering if there is support for websocket subscriptions?
Thank you!
The text was updated successfully, but these errors were encountered: