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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...