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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Cannot migrate from Supabase
Hi, I was trying to migrate from Supabase to the Appwrite database. My database had around 190K columns. I tried it twice. Both times, after 2 days, the proce...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...