So i am trying to use realtime in my appwrite nextjs client, i have the following code: ```ts useEffect(() => { const channel = 'databases..collections.'; console.log(channel, "About to subscribe") const unsubscribe = client.subscribe([channel], (res) => { console.log(res) if (res) { run("rooms", "GET"); // Re-fetch rooms when data changes } });
return () => {
unsubscribe(); // Cleanup function to prevent memory leaks
};
}, [Rooms]);``` and i don't see any log in the console of res when i update the data. I use nextjs server side for the appwrite sdk, and create API endpoints that i use to fetch and get data. so on the client side i try to use the realtime and yes i am importing from "appwrite" not "node-appwrite" here, i believe i set up everything correctly, cause after about an hour or 30 minutes i see this error in the image, so if it says realtime got disconnected it means it was connected, but the connection doesn't seem to work
That doesn't look like a valid channel. Look at the realtime docs for valid channels. Also, you can't use wildcards for realtime channels
Recommended threads
- π Realtime Flutter SDK Crash β Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...
- Realtime Connection Error After Updating...
I get the following error message now when the realtime subscription picks up a new message. There's more to the error but it makes the discord message too long...
- Realtime Connection Count only goes up
I just wanted to ask if this behavior is normal. I restarted realtime 2 days ago and it already reached a connection count of over 11k. The count only goes up. ...