I'm trying to find a simple way to show the number of active page views. The console shows the number of active Realtime sessions, so I was hoping I could pull the same data, and just have the page I want to monitor listen for something random.
I will have to find a way to know which page it is, but is there any way to get the number of active Realtime sessions with the SDK?
I'm using Svelte
Get current active Realtime sessions
I'm pretty sure that comes from realtime: https://github.com/appwrite/console/blob/88b6d59051992ed86183ee83d77bf678d1cb73bf/src/routes/console/project-%5Bproject%5D/%2Blayout.svelte#L20-L26
and im not sure you'll be able to use that for what you need...you'll probably have to find a custom solution
Yeah, I already tried subscribe(['project', 'connections']) and I don't receive any events. My guess is that the user doesn't have permissions, and there's currently no way to set them
only the console user would have access. you can inspect the network traffic on the Console to see what the request should look like
Huh - the projectId in the request from the console is console, not the projectId for current project
I guess this isn't going to be as simple as I thought it would π¦
Recommended threads
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...