make(driver, config = {}) {
    switch (driver) {
      case '/dev/null':
        return new DevNullPubSubAdapter();
      case 'local':
        return new LocalPubSubAdapter();
      case 'redis':
        return this._makeRedisAdapter(config);
      case 'gcloud':
        return this._makeGoogleCloudAdapter(config);
      case 'http':
        return this._makeHTTPAdapter(config);
    }
    throw new Error(`The driver [${driver}] is not supported.`);
  }
/**
   * Factory an adapter with the given config.
   *
   * @param {string} driver
   * @param {Object} [config={}]
   * @return {module:@superbalist/js-pubsub.PubSubAdapterInterface}
   * @throws Error if the driver is not supported
   * @example
   * let config = {
   *   'driver': 'redis',
   *   'host': 'localhost',
   *   'port': '6379',
   *   'db': 0,
   * }
   * let adapter = factory.make('redis', config);
   */
Factory an adapter with the given config.
Factory an adapter with the given config .
make(driver, config = {}) {
    switch (driver) {
      case '/dev/null':
        return new DevNullPubSubAdapter();
      case 'local':
        return new LocalPubSubAdapter();
      case 'redis':
        return this._makeRedisAdapter(config);
      case 'gcloud':
        return this._makeGoogleCloudAdapter(config);
      case 'http':
        return this._makeHTTPAdapter(config);
    }
    throw new Error(`The driver [${driver}] is not supported.`);
  }
make ( driver , config = { } ) { switch ( driver ) { case '/dev/null' : return new DevNullPubSubAdapter ( ) ; case 'local' : return new LocalPubSubAdapter ( ) ; case 'redis' : return this . _makeRedisAdapter ( config ) ; case 'gcloud' : return this . _makeGoogleCloudAdapter ( config ) ; case 'http' : return this . _makeHTTPAdapter ( config ) ; } throw new Error ( ` ${ driver } ` ) ; }
Factory an adapter with the given config.
Factory an adapter with the given config .