docs: function () {
      // Check for the match first. We only finish up and count this a failed
      // test if the event passes the match function.
      if (!action.match.apply(this, arguments)) {
        return;
      }
  
      clearTimeout(timeoutId);
      var args = [];
      for (var index = 0, length = arguments.length; index < length; index++) {
        args.push(arguments[index]);
      }
      self.socketEvent = {
        namespace: action.namespace,
        eventType: action.eventType,
        args: args
      };
  
      var error = new Error("Event " + action.eventType + " from socket namespace " + action.namespace + " occurred.");
      callback(error, self.socketEvent);
    }