index.js
/**
     * Post a whisper with pubKey matching the message sig
     * 
     * @param {*} payload optional payload serializable with JSON.stringify
     * @param {Object} options see web3.shh.post docs
     * @return {Promise<hash>} the hash of the message
     */
Post a whisper with pubKey matching the message sig

@param {*} payload optional payload serializable with JSON.stringify
@param {Object} options see web3.shh.post docs
@return {Promise} the hash of the message
Post a whisper with pubKey matching the message sig @param { * } payload optional payload serializable with JSON . stringify @param { Object } options see web3 . shh . post docs @return { Promise } the hash of the message
postBack(payload, options = {}) {
        if(!options.useSymKey && !this.authorSig && !this.simpleWhisper.options.pubKey && !options.pubKey) {
            throw new Error("The message you received isn't signed, you must specify the recipient pubKey or a symKeyID and useSymKey.");
        }
        const mergedOptions = Object.assign({pubKey: this.authorSig}, options);
        return this.simpleWhisper.post(payload, mergedOptions);
    }
postBack ( payload , options = { } ) { if ( ! options . useSymKey && ! this . authorSig && ! this . simpleWhisper . options . pubKey && ! options . pubKey ) { throw new Error ( "The message you received isn't signed, you must specify the recipient pubKey or a symKeyID and useSymKey." ) ; } const mergedOptions = Object . assign ( { pubKey : this . authorSig } , options ) ; return this . simpleWhisper . post ( payload , mergedOptions ) ; }
Post a whisper with pubKey matching the message sig
Post a whisper with pubKey matching the message sig