mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
* System stats
* Last callers rewritten using format and VM * Some minor MCI stuff
This commit is contained in:
parent
d02d9e4a7c
commit
1c1f4394ca
15 changed files with 126 additions and 39 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue