Hi Guys. I just got started with Appwrite ( coming from firebase). I was trying to create a todo app to perfect Crud operations. After going through the documentation i noticed that to get realtime updates, i need to create a realtime instance and subscribe to it and listen to the stream. It Gives me a bunch of events. As per my understanding, whenever i am adding a document to my collection, an create event should trigger and i should handle logic accordingly. But in my case when testing, it's not streaming any event. I'm currently running appwrite in docker on my local host and below is the code snippet. Am i missing anything ?
hmm...can you double check your channel is correct:
databases.643315731d080c64122f.todos.todos.documents
Yep. Database id is correct. In database i’ve created a collection called todos with the collection id "todos".
I’ve even tried listening to databases..todos..documents but no luck
Have you tried this?
databases.643315731d080c64122f.collections.todos.documents
Not really. I’ll try and report back. Thank you
Works like a charm. I used collection name instead of using "collections". Thank you for the quick resolution.
[SOLVED] Unable to Get Realtime event updates after subscribing.
Recommended threads
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...