
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
- session cookie not saving
it appears with my app hosted on Cloudflare worker pages, when i try to login it does not save the session cookie. however it saves in on localhost and no probl...
- Installation with Docker and Extra Servi...
See: https://github.com/appwrite/appwrite/issues/10673
- unexpected row_invalid_structure error
In images you can see both my code,error, column schema I do have timezone in table schema but still while creating a row i am receving row_invalid_structure e...
