check: performs some checks on the message received.
function (socket, type, message, callback) {
    var self = this;
    socket.get('actorid', function (err, id) {
      if (!id) {
        var data = {};
        data.type = type;
        data.message = message;
        var warnMsg = util.format("An unidentified actor tried to post the following message on Socket %s : Type='%s' Message=%s",
                                  socket.id, type, JSON.stringify(message));
        self._storeNagiosEvent(new NagiosCheckResponse(NagiosCheckResponseCodes.WARNING, EVENTS_CONTROLLER_SUBSYSTEM, warnMsg));
        logger.warn(warnMsg);
        socket.emit('whoareyou', data);
        return callback(err, false);
      }
      // here we can add additional checks.
      if (!message.ids) {
        var error = util.format("Received an ill-formed message, missing ids. (%s)", JSON.stringify(message));
        self._storeNagiosEvent(new NagiosCheckResponse(NagiosCheckResponseCodes.ERROR, EVENTS_CONTROLLER_SUBSYSTEM, error));
        socket.emit('error', error);
        return callback(error);
      }
      return callback(err, !!id);
    });
  }