build() {
        // If httpConnectionOptions has a logger, use it. Otherwise, override it with the one
        // provided to configureLogger
        const httpConnectionOptions = this.httpConnectionOptions || {};
        // If it's 'null', the user **explicitly** asked for null, don't mess with it.
        if (httpConnectionOptions.logger === undefined) {
            // If our logger is undefined or null, that's OK, the HttpConnection constructor will handle it.
            httpConnectionOptions.logger = this.logger;
        }
        // Now create the connection
        if (!this.url) {
            throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
        }
        const connection = new _HttpConnection__WEBPACK_IMPORTED_MODULE_3__.HttpConnection(this.url, httpConnectionOptions);
        return _HubConnection__WEBPACK_IMPORTED_MODULE_4__.HubConnection.create(connection, this.logger || _Loggers__WEBPACK_IMPORTED_MODULE_5__.NullLogger.instance, this.protocol || new _JsonHubProtocol__WEBPACK_IMPORTED_MODULE_6__.JsonHubProtocol(), this.reconnectPolicy);
    }
/** Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder.
     *
     * @returns {HubConnection} The configured {@link @microsoft/signalr.HubConnection}.
     */
Creates a  /signalr.HubConnection from the configuration options specified in this builder.
Creates a / signalr . HubConnection from the configuration options specified in this builder .
build() {
        const httpConnectionOptions = this.httpConnectionOptions || {};
        if (httpConnectionOptions.logger === undefined) {
            httpConnectionOptions.logger = this.logger;
        }
        if (!this.url) {
            throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
        }
        const connection = new _HttpConnection__WEBPACK_IMPORTED_MODULE_3__.HttpConnection(this.url, httpConnectionOptions);
        return _HubConnection__WEBPACK_IMPORTED_MODULE_4__.HubConnection.create(connection, this.logger || _Loggers__WEBPACK_IMPORTED_MODULE_5__.NullLogger.instance, this.protocol || new _JsonHubProtocol__WEBPACK_IMPORTED_MODULE_6__.JsonHubProtocol(), this.reconnectPolicy);
    }
build ( ) { const httpConnectionOptions = this . httpConnectionOptions || { } ; if ( httpConnectionOptions . logger === undefined ) { httpConnectionOptions . logger = this . logger ; } if ( ! this . url ) { throw new Error ( "The 'HubConnectionBuilder.withUrl' method must be called before building the connection." ) ; } const connection = new _HttpConnection__WEBPACK_IMPORTED_MODULE_3__ . HttpConnection ( this . url , httpConnectionOptions ) ; return _HubConnection__WEBPACK_IMPORTED_MODULE_4__ . HubConnection . create ( connection , this . logger || _Loggers__WEBPACK_IMPORTED_MODULE_5__ . NullLogger . instance , this . protocol || new _JsonHubProtocol__WEBPACK_IMPORTED_MODULE_6__ . JsonHubProtocol ( ) , this . reconnectPolicy ) ; }
Creates a {@link @microsoft/signalr.HubConnection} from the configuration options specified in this builder.
Creates a { @link @microsoft / signalr . HubConnection } from the configuration options specified in this builder .
// If httpConnectionOptions has a logger, use it. Otherwise, override it with the one // provided to configureLogger // If it's 'null', the user **explicitly** asked for null, don't mess with it. // If our logger is undefined or null, that's OK, the HttpConnection constructor will handle it. // Now create the connection