
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
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- Realtime not working with setSession as ...
Raising this here as the Issue on github hasnt been touched by devs since nov 28 2024 and it feels like a really trivial thing to fix. The issue recides in the ...
- Realtime is working intermittently
I am using appwrite in nextjs project. whenever I publish data I can see that it is saving in database but realtime is not working always
