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
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- SSL certificate issuance failed:
Domain verifies but SSL cert fails, tried different subdomains like .api and .aw, used cname and CAA, no prior CAA existed on website, tried Multiple CAAs at on...