index.js
/**
     * Set the default values and call getInfo
     * 
     * Possible keys: sig: Number, symKeyID: Number, pubKey: String, payload: any, padding: Number, targetPeer: Number, minPow: Number, allowP2P: Bool, ttl: Number, powTime: Number, powTarget: Number, topic: String|Number|BN|BigNumber
     * 
     * powTarget is set by default to 2 * minPow
     * 
     * @param {Object} options object containing all default values
     * @return {Promise<void>}
     */
Set the default values and call getInfo



powTarget is set by default to 2 * minPow

@param {Object} options object containing all default values
@return {Promise}
Set the default values and call getInfo powTarget is set by default to 2 * minPow @param { Object } options object containing all default values @return { Promise }
async config(options = {}) {
        this.info = await this.web3.shh.getInfo();
        this.options = Object.assign(
            this.options,
            SimpleWhisper.DEFAULT_OPTIONS, 
            {
                powTarget: 2 * this.info.minPow,
                powTime: Math.ceil(2 * this.info.minPow)
            },
            options);
        if(!this.isTopic(this.options.topic)) {
            this.options.topic = this.toTopic(this.options.topic);
        }
    }
async config ( options = { } ) { this . info = await this . web3 . shh . getInfo ( ) ; this . options = Object . assign ( this . options , SimpleWhisper . DEFAULT_OPTIONS , { powTarget : 2 * this . info . minPow , powTime : Math . ceil ( 2 * this . info . minPow ) } , options ) ; if ( ! this . isTopic ( this . options . topic ) ) { this . options . topic = this . toTopic ( this . options . topic ) ; } }
Set the default values and call getInfo
Set the default values and call getInfo
// fetch info // topic