mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
* client.runtime.* renamed to client.session.*
* some work on area names - need to fix login issue & rest shoudl work
This commit is contained in:
parent
1082b6e39c
commit
df477667b0
9 changed files with 14 additions and 10 deletions
|
@ -10,7 +10,7 @@ var clientConnections = [];
|
|||
exports.clientConnections = clientConnections;
|
||||
|
||||
function addNewClient(client) {
|
||||
var id = client.runtime.id = clientConnections.push(client) - 1;
|
||||
var id = client.session.id = clientConnections.push(client) - 1;
|
||||
|
||||
// Create a client specific logger
|
||||
client.log = logger.log.child( { clientId : id } );
|
||||
|
@ -37,7 +37,7 @@ function removeClient(client) {
|
|||
logger.log.info(
|
||||
{
|
||||
connectionCount : clientConnections.length,
|
||||
clientId : client.runtime.id
|
||||
clientId : client.session.id
|
||||
},
|
||||
'Client disconnected'
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue