_rejectResponse(responseType, result) {
        if (!this.expectedResponsePromises[responseType]) {
            debug(`Ignore reject for message type ${responseType} because no promise stored: ${JSON.stringify(result)}`);
            return;
        }
        debug(`Reject for message type ${responseType}: ${JSON.stringify(result)}`);
        this.expectedResponsePromises[responseType].responsePromise.reject(result);
        delete this.expectedResponsePromises[responseType];
    }
/**
     * Helper method to determine the relevant stored promise to reject after a certain response was received
     * @param {number} responseType Message type of response
     * @param {object} result Parsed response to reject promise with
     * @private
     */
Helper method to determine the relevant stored promise to reject after a certain response was received
@param {number} responseType Message type of response
@param {object} result Parsed response to reject promise with
@private
Helper method to determine the relevant stored promise to reject after a certain response was received @param { number } responseType Message type of response @param { object } result Parsed response to reject promise with @private
_rejectResponse(responseType, result) {
        if (!this.expectedResponsePromises[responseType]) {
            debug(`Ignore reject for message type ${responseType} because no promise stored: ${JSON.stringify(result)}`);
            return;
        }
        debug(`Reject for message type ${responseType}: ${JSON.stringify(result)}`);
        this.expectedResponsePromises[responseType].responsePromise.reject(result);
        delete this.expectedResponsePromises[responseType];
    }
_rejectResponse ( responseType , result ) { if ( ! this . expectedResponsePromises [ responseType ] ) { debug ( ` ${ responseType } ${ JSON . stringify ( result ) } ` ) ; return ; } debug ( ` ${ responseType } ${ JSON . stringify ( result ) } ` ) ; this . expectedResponsePromises [ responseType ] . responsePromise . reject ( result ) ; delete this . expectedResponsePromises [ responseType ] ; }
Helper method to determine the relevant stored promise to reject after a certain response was received
 @param {number} responseType Message type of response
 @param {object} result Parsed response to reject promise with
 @private
Helper method to determine the relevant stored promise to reject after a certain response was received @param { number } responseType Message type of response @param { object } result Parsed response to reject promise with @private