
I'm facing an issue where if an user closes the realtime subscription, I am not able to set up a subscription again. It returns a null when i try to do so.
What would be the way to approach this?
Also, what would be the proper approach to re connect the realtime if an user loses an internet connection without restarting the app.
TL;DR
Issue: Null error occurs when trying to set up a new realtime subscription after the previous one is closed. Additionally, looking for a proper approach to reconnect realtime when an user loses internet connection without app restart.
Solution: When closing the realtime subscription, ensure that any necessary cleanup or resetting of variables is done to avoid null errors when setting up a new subscription. To reconnect realtime after an internet connection loss, implement a retry mechanism that automatically attempts to reconnect periodically until a successful connection is established.Recommended threads
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attributes Problem - Cloud
I am not able to see the attribute columns and their context on cloud. Can you help?
- Authorization header not working in Appw...
I have an Appwrite function that takes a custom bearer token as authentication. The function works fine locally when I test it with `appwrite run functions`, bu...
