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
- Invalid query: Query on attribute has gr...
I cannot view the table within the Console
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...