mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-09 22:24:35 +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
|
@ -186,8 +186,8 @@ function startListening() {
|
|||
// Start tracking the client. We'll assign it an ID which is
|
||||
// just the index in our connections array.
|
||||
//
|
||||
if(_.isUndefined(client.runtime)) {
|
||||
client.runtime = {};
|
||||
if(_.isUndefined(client.session)) {
|
||||
client.session = {};
|
||||
}
|
||||
|
||||
clientConns.addNewClient(client);
|
||||
|
@ -205,12 +205,12 @@ function startListening() {
|
|||
});
|
||||
|
||||
client.on('error', function onClientError(err) {
|
||||
logger.log.info({ clientId : client.runtime.id }, 'Connection error: %s' % err.message);
|
||||
logger.log.info({ clientId : client.session.id }, 'Connection error: %s' % err.message);
|
||||
});
|
||||
|
||||
client.on('close', function onClientClose(hadError) {
|
||||
var l = hadError ? logger.log.info : logger.log.debug;
|
||||
l( { clientId : client.runtime.id }, 'Connection closed');
|
||||
l( { clientId : client.session.id }, 'Connection closed');
|
||||
|
||||
clientConns.removeClient(client);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue