set baseUrl(url) {
        if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) {
            throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
        }
        if (!url) {
            throw new Error("The HubConnection url must be a valid url.");
        }
        this.connection.baseUrl = url;
    }
/**
     * Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or
     * Reconnecting states.
     * @param {string} url The url to connect to.
     */
Sets a new url for the HubConnection. Note that the url can only be changed when the connection is in either the Disconnected or
Reconnecting states.
@param {string} url The url to connect to.
Sets a new url for the HubConnection . Note that the url can only be changed when the connection is in either the Disconnected or Reconnecting states . @param { string } url The url to connect to .
set baseUrl(url) {
        if (this._connectionState !== HubConnectionState.Disconnected && this._connectionState !== HubConnectionState.Reconnecting) {
            throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");
        }
        if (!url) {
            throw new Error("The HubConnection url must be a valid url.");
        }
        this.connection.baseUrl = url;
    }
set baseUrl ( url ) { if ( this . _connectionState !== HubConnectionState . Disconnected && this . _connectionState !== HubConnectionState . Reconnecting ) { throw new Error ( "The HubConnection must be in the Disconnected or Reconnecting state to change the url." ) ; } if ( ! url ) { throw new Error ( "The HubConnection url must be a valid url." ) ; } this . connection . baseUrl = url ; }
Sets a new url for the HubConnection.
Sets a new url for the HubConnection .