Hi! I'm using Appwrite cloud for my flutter project and realtime. However, today I've been having some weird problem with realtime where events aren't always being sent, to the point where now I receive none of them. I was wondering if anyone encountered the same issue. For reference, here is my code:
final Client client = Client()
..setEndpoint('https://cloud.appwrite.io/v1')
..setProject('xxx');
final Account account = Account(client);
await account.createAnonymousSession();
final Realtime realtime = Realtime(client);
realtime
.subscribe([
'documents',
'collections',
'databases.*.collections.*.documents',
])
.stream
.listen((event) {
print(event);
});
Also, the documents I've tried to edit to see whether realtime worked have the 'any' read permission
Recommended threads
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- Magic Link token automatically consumed
Hi, I'm using the Magic Link auth system with Appwrite Cloud and I'm running into huge issues getting users to log in successfully. About 9 times out of 10, th...