* System stats

* Last callers rewritten using format and VM
* Some minor MCI stuff
This commit is contained in:
Bryan Ashby 2015-10-17 20:03:51 -06:00
parent d02d9e4a7c
commit 1c1f4394ca
15 changed files with 126 additions and 39 deletions

View file

@ -3,12 +3,17 @@
var logger = require('./logger.js');
exports.getActiveConnections = getActiveConnections;
exports.addNewClient = addNewClient;
exports.removeClient = removeClient;
var clientConnections = [];
exports.clientConnections = clientConnections;
function getActiveConnections() {
return clientConnections.length;
}
function addNewClient(client) {
var id = client.session.id = clientConnections.push(client) - 1;