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
- [SOLVED] Error upgrading from 1.8.1 to 1...
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...
- 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...