* System stats
* Last callers rewritten using format and VM * Some minor MCI stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user