I have implemented the use of real time connection in my school project that is built with React Native and Expo. I have followed the documentation from the site that shows on how to unsubscribe. From what I have gathered from other sources and videos explaining its use when doing so in React calling it in a cleanup function should and does prevent more connections from being made to the same event. The problem that I am having is not being able to disconnect the real time connection when the unmount occurs when the current screen is not in focus. Is there something else that I am missing that I need to do? The docs seem like it should disconnect from it, maybe it should and react/react native does something differently that I do not know.
Recommended threads
- Getting CORS error when accessing websit...
When accessing my website I'm getting: (index):1 Access to font at 'https://assets.appwrite.io/fonts/inter/Inter-Regular.woff2' from origin 'https://mvp-site-ra...
- How to ByPass the Hostname restriction f...
Hello, Im hosting my React application in a stateless server environment, where the IP of the client keeps changing for the server. How do I bypass the hostname...
- Server error 500 in appwrite 1.8.0
jwt = users.create_jwt(res["userId"])["jwt"] I got this error 500 after changing environment variables and restarting containers export _APP_DOMAIN=server1.ava...