send(message) {
    if (this.acls.length < 1) {
      logger.error('Message not sent, no acls provided.');
    }

    if (message) {
      logger.log('>> provider', this.acls, message);

      if (this.activeACL) {
        this.dispatchFunction(message, this.activeACL);
      } else if (this.acls.some((acl) => acl.includes('*'))) {
        // If acls includes urls with wild cards we do not know
        // where we are embedded.  Provide '*' so the messages can be sent.
        this.acls.forEach((uri) => this.dispatchFunction(message, '*'));
      } else {
        this.acls.forEach((uri) => this.dispatchFunction(message, uri));
      }
    }
  }
/**
  * Send the given message to the application's parent.
  * @param {object} message - The message to send.
  */
Send the given message to the application's parent.
@param {object} message - The message to send.
Send the given message to the application ' s parent . @param { object } message - The message to send .
send(message) {
    if (this.acls.length < 1) {
      logger.error('Message not sent, no acls provided.');
    }
    if (message) {
      logger.log('>> provider', this.acls, message);
      if (this.activeACL) {
        this.dispatchFunction(message, this.activeACL);
      } else if (this.acls.some((acl) => acl.includes('*'))) {
        this.acls.forEach((uri) => this.dispatchFunction(message, '*'));
      } else {
        this.acls.forEach((uri) => this.dispatchFunction(message, uri));
      }
    }
  }
send ( message ) { if ( this . acls . length < 1 ) { logger . error ( 'Message not sent, no acls provided.' ) ; } if ( message ) { logger . log ( '>> provider' , this . acls , message ) ; if ( this . activeACL ) { this . dispatchFunction ( message , this . activeACL ) ; } else if ( this . acls . some ( ( acl ) => acl . includes ( '*' ) ) ) { this . acls . forEach ( ( uri ) => this . dispatchFunction ( message , '*' ) ) ; } else { this . acls . forEach ( ( uri ) => this . dispatchFunction ( message , uri ) ) ; } } }
Send the given message to the application's parent.
Send the given message to the application ' s parent .
// If acls includes urls with wild cards we do not know // where we are embedded.  Provide '*' so the messages can be sent.