Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Support routing for default WSS endpoint #131

Open
marktani opened this issue Jan 23, 2018 · 1 comment
Open

Support routing for default WSS endpoint #131

marktani opened this issue Jan 23, 2018 · 1 comment

Comments

@marktani
Copy link
Contributor

Issue by marktani
Thursday Aug 17, 2017 at 14:02 GMT
Originally opened as https://github.com/graphcool/prisma/issues/346


For all APIs apart from the WSS endpoint, the default endpoint can be used across regions. However, for subscriptions, the region specific endpoint has to be used:

  • default: wss://subscriptions.graph.cool/v1/__PROJECT_ID__
  • AP: wss://subscriptions.ap-northeast-1.graph.cool/v1/cislqwo6e039e01171nzb9mxw
  • US: wss://subscriptions.us-west-2.graph.cool/v1/cislqwo6e039e01171nzb9mxw

It should be possible for all regions to use the default endpoint.

@marktani
Copy link
Contributor Author

Comment by sorenbs
Tuesday Sep 12, 2017 at 13:23 GMT


We don't want to proxy websocket connections as they have to stay open for an extended period of time. Rather, we should redirect to the correct region. Some ws implementations are known to not follow redirects, so we should verify that this works with Apollo in most cases.

See for example websockets/ws#812

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

No branches or pull requests

1 participant