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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- 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...