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
- [1.9.5] Google OAuth do not work anymore
After migrating to 1.8.1 to 1.9.0 then 1.9.5 and login through Google I get on Flutter app "Missing redirect URL" "Your OAuth login flow is missing a proper re...
- Fatal error: Allowed memory size of 5368...
Hi how solved it worker-messaging infinite reload ` Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /usr/src/co...
- How to successfully migrate from 1.9.0 t...
I've tried the automatic tool for migration but my Appwrite (self-hosted) went to a broken state. My functions wouldn't deploy anymore, some things just didn't ...