|
|
@ -1,5 +1,6 @@
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var os = require('os');
|
|
|
|
var async = require('async');
|
|
|
|
var async = require('async');
|
|
|
|
var nconf = require('nconf');
|
|
|
|
var nconf = require('nconf');
|
|
|
|
var winston = require('winston');
|
|
|
|
var winston = require('winston');
|
|
|
@ -84,6 +85,7 @@ function onConnect(socket) {
|
|
|
|
|
|
|
|
|
|
|
|
socket.join('sess_' + socket.request.signedCookies[nconf.get('sessionKey')]);
|
|
|
|
socket.join('sess_' + socket.request.signedCookies[nconf.get('sessionKey')]);
|
|
|
|
io.sockets.sockets[socket.id].emit('checkSession', socket.uid);
|
|
|
|
io.sockets.sockets[socket.id].emit('checkSession', socket.uid);
|
|
|
|
|
|
|
|
io.sockets.sockets[socket.id].emit('setHostname', os.hostname());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function onMessage(socket, payload) {
|
|
|
|
function onMessage(socket, payload) {
|
|
|
|