Skip to content
Back

Realtime disconnecting after 1-2 minutes

  • 0
  • Web
  • Realtime
Josh🎗
22 Dec, 2024, 15:45

Hey, I've been trying to implement realtime into my app. For the first 1-2 minutes of page load, the API works as expected. However, the websocket then terminates and I don't receive new updates.

I should also note that the realtime connection number on the dashboard is always 0, regardless of whether I can receive updates.

Thanks!

TL;DR
Developers experiencing realtime disconnection issue after 1-2 minutes of page load, with websocket connection dropping after 100s of no communication due to Cloudflare. Realtime Keepalive feature to be released in the future. As a temporary solution, consider forking the web and flutter SDK and implementing the feature yourselves. No specific ETA provided for the feature.
Joshi
22 Dec, 2024, 15:48

They recently made use of cloudflare, one bad side effect is that the websocket connection drops after exactly 100s of no communication. Realtime keepalive feature will be released some time in the future.

Josh🎗
22 Dec, 2024, 15:48

Okay, thanks. Are there any solutions I can implement in the interim?

Joshi
22 Dec, 2024, 15:50

We have forked the web and flutter sdk and implemented that feature ourselves a long time ago. If you can't wait I would consider that approach too

Josh🎗
22 Dec, 2024, 15:51

Okay - I suppose I can wait since my app is still in development. Do you know of an ETA?

Joshi
22 Dec, 2024, 15:53

I'm not affiliated with Appwrite so I don't know for sure. I have seen some branches dedicated to that feature but keep in mind that it is holiday season atm.

Josh🎗
22 Dec, 2024, 15:55

Ah okay, thanks so much

Joshi
22 Dec, 2024, 15:57

If I find the time I'll release our own SDK for web and flutter (with a few nice addons:PES2_Hide: ), tho it contains some internal code that we can't public so I have to cleanup and refactor it first. I'll put it on my todo list.

Josh🎗
22 Dec, 2024, 15:58

That's awesome, thanks!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more