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
- 1.9.5 Migration problem
1.9.5 migration problem after run migration command only openruntimes-executor
- Appwrite Sites deployment fails because ...
Appwrite Cloud Sites deployments are failing consistently for both GitHub and manual deployments. The build command completes successfully and packaging also c...
- Build succeeds but deployment fails β si...
My Next.js 15.5.20 site (standalone output mode) builds successfully on Appwrite Sites, but the deployment fails at the final packaging step with: [sidecar:bui...