acceptAsClient(response) {
        const params = response[0];
        if (this._options.clientNoContextTakeover === false && params.client_no_context_takeover) throw new Error('Unexpected parameter "client_no_context_takeover"');
        if (!params.client_max_window_bits) {
            if (typeof this._options.clientMaxWindowBits === 'number') params.client_max_window_bits = this._options.clientMaxWindowBits;
        } else if (this._options.clientMaxWindowBits === false || typeof this._options.clientMaxWindowBits === 'number' && params.client_max_window_bits > this._options.clientMaxWindowBits) throw new Error('Unexpected or invalid parameter "client_max_window_bits"');
        return params;
    }
/**
   * Accept the extension negotiation response.
   *
   * @param {Array} response The extension negotiation response
   * @return {Object} Accepted configuration
   * @private
   */
Accept the extension negotiation response.
@param {Array} response The extension negotiation response
@return {Object} Accepted configuration
@private
Accept the extension negotiation response . @param { Array } response The extension negotiation response @return { Object } Accepted configuration @private
acceptAsClient(response) {
        const params = response[0];
        if (this._options.clientNoContextTakeover === false && params.client_no_context_takeover) throw new Error('Unexpected parameter "client_no_context_takeover"');
        if (!params.client_max_window_bits) {
            if (typeof this._options.clientMaxWindowBits === 'number') params.client_max_window_bits = this._options.clientMaxWindowBits;
        } else if (this._options.clientMaxWindowBits === false || typeof this._options.clientMaxWindowBits === 'number' && params.client_max_window_bits > this._options.clientMaxWindowBits) throw new Error('Unexpected or invalid parameter "client_max_window_bits"');
        return params;
    }
acceptAsClient ( response ) { const params = response [ 0 ] ; if ( this . _options . clientNoContextTakeover === false && params . client_no_context_takeover ) throw new Error ( 'Unexpected parameter "client_no_context_takeover"' ) ; if ( ! params . client_max_window_bits ) { if ( typeof this . _options . clientMaxWindowBits === 'number' ) params . client_max_window_bits = this . _options . clientMaxWindowBits ; } else if ( this . _options . clientMaxWindowBits === false || typeof this . _options . clientMaxWindowBits === 'number' && params . client_max_window_bits > this . _options . clientMaxWindowBits ) throw new Error ( 'Unexpected or invalid parameter "client_max_window_bits"' ) ; return params ; }
Accept the extension negotiation response.
Accept the extension negotiation response .