Back

Add Listener for "Realtime got disconnected"?

  • 0
  • Databases
  • Web
  • Realtime
  • Cloud
vieltrinker
7 Nov, 2024, 21:04

Is there a way to listen to the websocket open/close events for the realtime connection? I'm concerned that if my hybrid app is put into the background and the listener gets disconnected, I will miss the document updates that happened in the meantime. Is this something I need to handle, or is it already managed?

TL;DR
Developers are experiencing realtime disconnects after moving to Cloudflare. They are adding improvements such as heartbeat messages and logging control. They are looking for a way to listen to websocket open/close events for the realtime connection to prevent missing document updates when the app is in the background. Solution: Implement a solution to listen for websocket open/close events effectively.
Torsten Dittmann
7 Nov, 2024, 21:10

We are experiencing some disconnects due to us moving to cloudflare not to long ago. We are working on some improvements right now like heartbeat messages and control over logging.

Right now the realtime connection in the sdk will immediately reconnect, however we don’t have an issue way to listen right now ☺️

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