code: function(callback) {
  
        // Detect server errors
        var t = this, server = t.get('server');
        server.on('clientError', function(err){
          log.error('bindEvents', 'clientError detected on server', err);
          t.trigger('error', err);
        });
        server.on('close', function(err){
          server.hasEmittedClose = true;
          log.info('bindEvents.serverClose', 'Server has closed', err);
          t.stop();
        });
  
        // Start up the socket.io server.
        var socketIoParams = {
          log: false
        };
        t.socketServer = SocketIO.listen(server, socketIoParams);
        t.socketServer.sockets.on('connection', function (socket) {
          var connection = Monitor.getRouter().addConnection({
            socket: socket, gateway: t.get('gateway')
          });
          t.connections.add(connection);
          var onDisconnect = function(reason) {
            t.connections.remove(connection);
            Monitor.getRouter().removeConnection(connection);
            connection.off('disconnect', onDisconnect);
            log.info('client.disconnect', 'Disconnected client socket');
          };
          connection.on('disconnect', onDisconnect);
          log.info('client.connect', 'Connected client socket');
        });
  
        // Notify that we've started
        t.isListening = true;
        if (callback) {callback(null);}
        t.trigger('start');
      }
docs: Bind incoming socket events to the server
  
  This method binds to the socket events and attaches the socket.io
  server.  It is called when the connection starts listening.
  
  @protected
  @method bindEvents
  @param callback {Function(error)} - Called when all events are bound