connection(name = null) {
    if (name === null) {
      name = this.getDefaultConnection();
    }

    if (!this.connections.hasOwnProperty(name)) {
      this.connections[name] = this._makeConnection(name);
    }

    return this.connections[name];
  }
/**
   * Return a connection to a PubSub adapter.
   *
   * If the name is null, the default connection is used.
   *
   * When creating the connection, the manager will first check if a connection
   * is already established.
   * If the connection does not exist, it will create a new connection.
   *
   * @param {?string} [name]
   * @return {module:@superbalist/js-pubsub.PubSubAdapterInterface}
   * @example
   * let adapter = manager.connection();
   * adapter = manager.connection('redis');
   * adapter = manager.connection('gcloud');
   */
Return a connection to a PubSub adapter.
If the name is null, the default connection is used.

When creating the connection, the manager will first check if a connection
is already established.
If the connection does not exist, it will create a new connection.


Return a connection to a PubSub adapter . If the name is null the default connection is used . When creating the connection the manager will first check if a connection is already established . If the connection does not exist it will create a new connection .
connection(name = null) {
    if (name === null) {
      name = this.getDefaultConnection();
    }
    if (!this.connections.hasOwnProperty(name)) {
      this.connections[name] = this._makeConnection(name);
    }
    return this.connections[name];
  }
connection ( name = null ) { if ( name === null ) { name = this . getDefaultConnection ( ) ; } if ( ! this . connections . hasOwnProperty ( name ) ) { this . connections [ name ] = this . _makeConnection ( name ) ; } return this . connections [ name ] ; }
Return a connection to a PubSub adapter.
Return a connection to a PubSub adapter .