Hi everyone! I'm running into a weird issue with Appwrite realtime in my chat app and was hoping someone might have some insights.
I have a chat view, and when it appears, I subscribe to my messages collection. For a while, it works great – I can send and receive messages in realtime. But then, things get flaky. Sometimes, messages just don't show up, even though I can see the documents being created in the database. It'll just skip some and then catch the next one. Other times, the realtime just seems to stop completely, and no new messages come through at all, even when there's activity.
I've double-checked my permissions (even set them wide open as a test!), and I've tried subscribing in different ways – once at the app level, and also subscribing/unsubscribing when the chat view opens and closes. Both approaches seem to lead to the same intermittent failures.
Has anyone else experienced anything like this with realtime being unreliable? I'm scratching my head about what I might be missing. Any thoughts or suggestions would be hugely appreciated! 🙏
Recommended threads
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Relationships and Realtime
Since now Relationship attributes are only returned when explicitly queried, how does this change reflect in Realtime? If a listener is listening to a row from ...