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!
Summary
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
Dec 22, 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🎗
Web Developer
Dec 22, 2024, 15:48
Okay, thanks. Are there any solutions I can implement in the interim?
Joshi
Dec 22, 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🎗
Web Developer
Dec 22, 2024, 15:51
Okay - I suppose I can wait since my app is still in development. Do you know of an ETA?
Joshi
Dec 22, 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🎗
Web Developer
Dec 22, 2024, 15:55
Ah okay, thanks so much
Joshi
Dec 22, 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.