async connect(restart = false) {

        if (this._connected && restart !== true) {
            return this._connected;
        }

        this._ensureDiscoverability();

        this._connected = this._connectService(this.config.discovery);
        return this._connected;
    }
/**
     * Connects to a service by repeate querying an endpoint.
     *
     * The requests will be repeated until a maximum delay (maxDelay) is reached, starting
     *
     * @return {Promise<{Object}>} - the response body of the enpoint
     */
Connects to a service by repeate querying an endpoint.
The requests will be repeated until a maximum delay (maxDelay) is reached, starting

@return {Promise<{Object}>} - the response body of the enpoint
Connects to a service by repeate querying an endpoint . The requests will be repeated until a maximum delay ( maxDelay ) is reached starting @return { Promise< { Object } > } - the response body of the enpoint
async connect(restart = false) {
        if (this._connected && restart !== true) {
            return this._connected;
        }
        this._ensureDiscoverability();
        this._connected = this._connectService(this.config.discovery);
        return this._connected;
    }
async connect ( restart = false ) { if ( this . _connected && restart !== true ) { return this . _connected ; } this . _ensureDiscoverability ( ) ; this . _connected = this . _connectService ( this . config . discovery ) ; return this . _connected ; }
Connects to a service by repeate querying an endpoint.
Connects to a service by repeate querying an endpoint .