This should log the response, right? Well it doesn't. I see the connection in the network tab, it's alive and healthy. Any ideas?
function callback(response){
return console.log(response)
}
const unscribe = appwrite.client.subscribe('dashboard', callback);
beforeNavigate(to => {
unscribe()
})```
Images confirming that everything is set as it should be? and we indeed are connected
is dashboard the name of your collection?
Would it not be
appwrite.client.subscribe('databases.*.collections.dashboard', callback);
yes, i'm so sorry, i just figired that out while you were writing ))
added for test individual document, everything works just fine, god damn me old fool, always blind to obvious things
thank you @Kenny
Glad you figured it out! :)
[SOLVED] Realtime Subscriptions - callback doesnt log?
Recommended threads
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...