send(actionName, data, transfers) {
    this.comObj.postMessage(
      {
        sourceName: this.sourceName,
        targetName: this.targetName,
        action: actionName,
        data,
      },
      transfers
    );
  }
Sends a message to the comObj to invoke the action with the supplied data.
@param {string} actionName - Action to call.
@param {JSON} data - JSON data to send.
@param {Array} [transfers] - List of transfers/ArrayBuffers.