Relay: Websockets and Relay

Created on 13 Aug 2015  路  6Comments  路  Source: facebook/relay

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?

question

Most helpful comment

@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.

All 6 comments

cc/ @laneyk

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.

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.

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

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

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jstejada picture jstejada  路  3Comments

staylor picture staylor  路  3Comments

johntran picture johntran  路  3Comments

rayronvictor picture rayronvictor  路  3Comments

amccloud picture amccloud  路  3Comments