
I have a searches database and I listen to specific documents (the search the user created) by id to display the search results in realtime in my nextjs frontend. This part was working and I'm pretty sure I haven't changed any code there the last few months, but now I noticed that no events get sent on the websocket anymore.

Here's my code:
useEffect(() => {
console.log(initialSearch.$id);
const unsubscribe = client.subscribe(`databases.${db}.collections.${searchesCollection}.documents.${initialSearch.$id}`, (e) => {
console.log("update");
});
return () => {
unsubscribe();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

This is the only event I receive in the browser console:
{
"type": "connected",
"data": {
"channels": [
"databases.project.collections.searches.documents.67d56cb800173a00b735"
],
"user": null
}
}

The permissions on my collection should also be fine
Recommended threads
- Problems with adding my custom domain
- CSV Not Importing
We don’t seem to having any luck importing a simple .csv file. The import function acts like it’s working but no data imports or is shown in the collection The...
- Can't push functions when self-hosting o...
Hello, I'm a bit new to appwrite functions and recently hosted a fresh 1.7.4 on my portainer setup. Tried to create a new function and when trying to push it I ...
