code: function emitter(event, payload)
  {
    // get proper name
    var normalizeType, normalized = normalize(event);
  
    // notify listeners
    this.emit(normalized, payload, (payload.user || {}).send);
  
    // notify listeners of the specific type
    if (payload.type)
    {
      normalizeType = normalize(payload.type);
      this.emit([normalized, normalizeType].join('.'), payload, (payload.user || {}).send);
    }
  }
docs: Emits normalized event with payload and extracted send method.
  Also tries to emit specific type event
  
  @param {string} event - event handle
  @param {object} payload - current payload object