What is the correct syntax to trigger a realtime event only on my 3 collections for every document? With or without the brackets?
client.subscribe( ['databases.[63446ca755a041305f7f].collections.[66f7fce6002b828c5b50].documents', 'databases.[63446ca755a041305f7f].collections.[667be4de65e1cbaedb43].documents', 'databases.[63446ca755a041305f7f].collections.[667698d85d98f40d9f97].documents', 'files'], response => { // Callback will be executed on changes for documents and all files. console.log("realtime :", response); this.realtimePayload = response.payload; });
see - https://appwrite.io/docs/apis/realtime for examples
and here's the correct channel formats - https://appwrite.io/docs/apis/realtime#channels
also you dont need brackets [].
should be just -
databases.databaseID.collections.collectionID.documents
where databaseID & collectionID are the actual IDs.
thank you very much π
Recommended threads
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.