Hello, everyone!
I'm using Flutter + Appwrite + Realtime. My Realtime instance listens to changes made to a particular Collection. This works fine.
Now I have the following situation: Realtime stops listening to changes in the collection after WiFi was switch on/off. It doesn't automatically recover. Creating a new instance of Realtime makes it working again (after closing/cancelling the current instance first).
I was wondering, is it normal behaviour that Realtime stops working after disconnecting Internet connectivity? And what's the best practice in such situation? Are we supposed to keep track of connection status manually and create a new instance every time the user disconnects/reconnects WiFi?
Thanks for reading!
Yes, this is expected. You might want to resubscribe after connecting to the internet again.
Thanks! 👍
[SOLVED] Losing Realtime connection after switching WiFi on/off
Recommended threads
- Guidance to safely upgrade Appwrite to l...
One of my old Flutter projects runs on a DO self-hosted Appwrite. Currently it's on appwrite: ^15.0.2 dart_appwrite: ^15.0.0 The app is live on the Play Stor...
- Excessive usage of cloud functions is sl...
I have made almost all my requests through cloud functions and jwt , due to security fears of a user editing a field he is not supposed to . This unfortunately...
- Help