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

Question: Realtime Updates supported #8

Open
g3rd opened this issue Aug 15, 2019 · 6 comments
Open

Question: Realtime Updates supported #8

g3rd opened this issue Aug 15, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@g3rd
Copy link

g3rd commented Aug 15, 2019

Does Cloudflare Workers' GraphQL Server allow for subscription / realtime updates?

@kristianfreeman
Copy link
Contributor

Hey @g3rd - we don't currently support it as the Workers platform doesn't have Websockets or anything along those lines.

You should be able to use the Apollo client's polling/refetching capabilities, I haven't tested it personally yet, but planning on trying it out at some point in the future. Let me know if you end up trying it!

@kristianfreeman kristianfreeman added the enhancement New feature or request label Aug 16, 2019
@g3rd
Copy link
Author

g3rd commented Aug 21, 2019

I'll be giving is a shot soon, and keep you posted!

@Niko-La
Copy link

Niko-La commented Aug 29, 2019

@g3rd please keep us updated. iot needs real time and subscriptions

@signalnerve is there a delay initially which is typical for serverless functions at the initial bootup? Usually cloud function vendors tell you to run a hack to preserve the function indefinitely.

@lewisl9029
Copy link

Seems like subscriptions might be possible now with the introduction of durable objects?
https://blog.cloudflare.com/introducing-workers-durable-objects/

Would love to see this starter extended with subscriptions, or at least some guidelines on best practices.

@kristianfreeman
Copy link
Contributor

Seems like subscriptions might be possible now with the introduction of durable objects?
https://blog.cloudflare.com/introducing-workers-durable-objects/

Would love to see this starter extended with subscriptions, or at least some guidelines on best practices.

Indeed! Since this issue was created Durable Objects have been birthed into existence :) I'm going to take some time this year to look at Durable Objects and if it will allow us to do subscriptions, that would be amazing! No updates at the moment but when we open DO up for public beta, I'd love to have someone else tackle it too if they're interested 👍

@AlaaZorkane
Copy link

Hey @signalnerve ! Any updates on this? Especially regarding the latest websocket update?

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

No branches or pull requests

5 participants