code: function (event, parameters) {
      if (event === 'COMMAND') {
          event = 'command_' + parameters[3];
      }
      parameters.unshift(event);
      this.emit.apply(this, parameters);
  }
docs: For event-type messages, this calls the correct event handlers.
  @param  {String} event     Event type name
  @param  {Array} parameters Parameters for the event