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 Flutter SDK Crash β Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...
- Realtime Connection Error After Updating...
I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long...
- Realtime Connection Count only goes up
I just wanted to ask if this behavior is normal. I restarted realtime 2 days ago and it already reached a connection count of over 11k. The count only goes up. ...