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

Websockets and Relay #51

Closed
gmmurphy opened this issue Aug 13, 2015 · 6 comments
Closed

Websockets and Relay #51

gmmurphy opened this issue Aug 13, 2015 · 6 comments
Labels

Comments

@gmmurphy
Copy link

What are the current thoughts on using Websockets in the network layer?

How would you keep all clients up-to-date when a mutation is sent from a single client? In the other clients' environment, it would just receive a query response but, there wouldn't be a request object to go with it in the network layer. Or is it as simple as Relay is not made with this kind of data flow in mind?

@steveluscher
Copy link
Contributor

cc/ @laneyk

@devknoll
Copy link
Contributor

There's also an ongoing discussion about subscriptions in GraphQL going on in #subscriptions channel on slack (www.github.com/facebook/graphql) which may(?) address this use case.

@wincent
Copy link
Contributor

wincent commented Aug 13, 2015

Or is it as simple as Relay is not made with this kind of data flow in mind?

It's definitely within scope. As @devknoll mentioned, we are actively discussing what subscriptions should look like in open source GraphQL. Internally, we already have prototypes that work with Relay, but they depend on bits of internal infra. We need to figure out how best to tackle this in open source, and websockets may be part of the solution.

@josephsavona
Copy link
Contributor

Thanks for the great question! I've documented this in the wiki - please feel free to re-open if you have additional questions.

wiki: https://github.com/facebook/relay/wiki/Frequently-Asked-Questions#does-relay-support-real-time-updates

@choucavalier
Copy link

What is the current status of this? Any progress for real-time updates with Relay? Thanks!

@josephsavona
Copy link
Contributor

@Toogy We're tracking progress on this at #541. There are some open PRs from the community but we haven't had the bandwidth to support these well. Once #558 and #559 are complete we should be in a better place to focus on this.

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

No branches or pull requests

6 participants