
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
- Managed databases?
I'm evaluating Appwrite Cloud for a project. One of my requirements is that I can move to selfhosted down the road if it becomes necessary. After reading the...
- Dumb question, api key for app? Protect ...
I have my project set up, and I'm developing with Flutter. My app does not require users to log in to retrieve some general project data, but authentication is ...
- Update Document taking absurdly long
I'm making a food ordering app for businesses What im trying to do is to create a menu a restuarant is going to have posted all troughout the week, with certai...
