* client.runtime.* renamed to client.session.*

* some work on area names - need to fix login issue & rest shoudl work
This commit is contained in:
Bryan Ashby 2015-09-25 23:10:18 -06:00
parent 1082b6e39c
commit df477667b0
9 changed files with 14 additions and 10 deletions

View file

@ -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);
});