sjkummer / janus-gateway-js

Janus-gateway WebRTC client for Node.js and the browser.
MIT License
175 stars 56 forks source link

Is there a current way to get all sessions on a janus instance? #116

Closed GRVYDEV closed 3 years ago

GRVYDEV commented 4 years ago

Hi, I am wondering if there is a way to get all of the current connections on a single janus instance. I need to build a CDN system for janus and I would like to be able to see how many people are connected to the server.

sjkummer commented 3 years ago

You are probably looking for the list_sessions request of the Janus Admin API: https://janus.conf.meetecho.com/docs/admin.html

Calling an additional request using library can be done, but you will need to parse the result JSON by yourself.