mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added listusersessions to meshctrl
This commit is contained in:
parent
2d0524569d
commit
3c0eed1369
2 changed files with 24 additions and 5 deletions
|
@ -1387,7 +1387,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
{
|
||||
// Request a list of all web socket user session count
|
||||
var wssessions = {};
|
||||
if ((user.siteadmin & 2) == 0) break;
|
||||
if ((user.siteadmin & 2) == 0) { try { ws.send(JSON.stringify({ action: 'wssessioncount', wssessions: {}, tag: command.tag })); } catch (ex) { } break; }
|
||||
if (parent.parent.multiServer == null) {
|
||||
// No peering, use simple session counting
|
||||
for (i in parent.wssessions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue