lib/websockets.js
function (socket) {
    var session = socket.handshake.session;

    if (session && session.passport) {
      this.addSocket(session.passport.user, socket);
    } else {
      console.debug('Websocket connection does not have authorization - nothing to do.');
    }
  }
function (socket) {
    var session = socket.handshake.session;

    if (session && session.passport) {
      this.addSocket(session.passport.user, socket);
    } else {
      console.debug('Websocket connection does not have authorization - nothing to do.');
    }
  }
socket callback. Adds a new socket