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

Let's talk subscriptions! #7

Closed
yosef-abraham opened this issue Feb 24, 2020 · 5 comments
Closed

Let's talk subscriptions! #7

yosef-abraham opened this issue Feb 24, 2020 · 5 comments

Comments

@yosef-abraham
Copy link
Contributor

What is the roadmap regarding graphql subscriptions using the websocket transport?
It seems reasonable to expect a streams-based graphql client to support subscriptions. Is it of much work?

@klavs
Copy link

klavs commented Feb 24, 2020

Hi @iscriptology!

It is reasonable. package:ferry relies on package:gql_*_link from https://github.com/gql-dart/gql for the network layer functionality.

As you can see gql_websocket_link is not yet implemented. My plan was to borrow and adjust the code from package:graphql. It's on my radar, but not yet on my todo list.

Feel free to open a PR to implement it.

@smkhalsa
Copy link
Member

Yes, this should just work in package:ferry once a subscription-compatible link is added.

@smkhalsa
Copy link
Member

moved to gql-dart/gql#76

@yosef-abraham
Copy link
Contributor Author

Wouldn't it need a specific flutter widget? Will Query do the job?

@smkhalsa
Copy link
Member

Wouldn't it need a specific flutter widget? Will Query do the job?

No, Query should work just fine since it's based on StreamBuilder.

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

3 participants