src/client.js
/**
   * Add a server to this client.  If serverConfig is provide it will use that as the servers
   * Configuration, otherwise it will attemt to load the configuration from the server
   * @param {*} server The base url of the server
   * @param {*} serverConfig JSON representation of the servers smart configuration 
   */
Add a server to this client.  If serverConfig is provide it will use that as the servers
Configuration, otherwise it will attemt to load the configuration from the server
@param {*} server The base url of the server
@param {*} serverConfig JSON representation of the servers smart configuration
Add a server to this client . If serverConfig is provide it will use that as the servers Configuration otherwise it will attemt to load the configuration from the server @param { * } server The base url of the server @param { * } serverConfig JSON representation of the servers smart configuration
async addServer(server, serverConfig = null) {
    this.persistence.addServer(server)
    if (serverConfig) {
      this.persistence.addServerConfiguration(serverConfig)
      return serverConfig;
    } else {
      return await this.loadServerConfiguration(server)
    }
  }
async addServer ( server , serverConfig = null ) { this . persistence . addServer ( server ) if ( serverConfig ) { this . persistence . addServerConfiguration ( serverConfig ) return serverConfig ; } else { return await this . loadServerConfiguration ( server ) } }
Add a server to this client.
Add a server to this client .