_triggerEvent(eventData) {

    let pEv = Object.keys(playerEvents).filter(ev => eventData.indexOf(ev) !== -1);

    // If this is an event that is mapped, trigger it
    if (pEv.length > 0 || this._allowedEvents.indexOf(eventData) !== -1) {

      let ev = eventData;
      let value = null;

      if (pEv.length > 0) {
        let parts = eventData.split('::');
        ev = playerEvents[pEv[0]];
        value = parts.length === 2 ? parts[1] : undefined;
      }

      this.trigger(ev, value);
    }
  }
/**
   * Takes a message from the PBS Cove API and triggers the corresponding
   * PBSMessageAPI event. If the message is an unknown message, the message
   * event will be ignored.
   *
   * @param {String} eventData The message from PBS
   * @private
   */
Takes a message from the PBS Cove API and triggers the corresponding
PBSMessageAPI event. If the message is an unknown message, the message
event will be ignored.

@param {String} eventData The message from PBS
@private
Takes a message from the PBS Cove API and triggers the corresponding PBSMessageAPI event . If the message is an unknown message the message event will be ignored . @param { String } eventData The message from PBS @private
_triggerEvent(eventData) {
    let pEv = Object.keys(playerEvents).filter(ev => eventData.indexOf(ev) !== -1);
    if (pEv.length > 0 || this._allowedEvents.indexOf(eventData) !== -1) {
      let ev = eventData;
      let value = null;
      if (pEv.length > 0) {
        let parts = eventData.split('::');
        ev = playerEvents[pEv[0]];
        value = parts.length === 2 ? parts[1] : undefined;
      }
      this.trigger(ev, value);
    }
  }
_triggerEvent ( eventData ) { let pEv = Object . keys ( playerEvents ) . filter ( ev => eventData . indexOf ( ev ) !== - 1 ) ; if ( pEv . length > 0 || this . _allowedEvents . indexOf ( eventData ) !== - 1 ) { let ev = eventData ; let value = null ; if ( pEv . length > 0 ) { let parts = eventData . split ( '::' ) ; ev = playerEvents [ pEv [ 0 ] ] ; value = parts . length === 2 ? parts [ 1 ] : undefined ; } this . trigger ( ev , value ) ; } }
Takes a message from the PBS Cove API and triggers the corresponding
 PBSMessageAPI event.
Takes a message from the PBS Cove API and triggers the corresponding PBSMessageAPI event .
// If this is an event that is mapped, trigger it