async BindMethod (method, inputMsg, outputMsg, plugin) {
        const input = {
            method: method, inputMsg: inputMsg, outputMsg: outputMsg, plugin: plugin
        }
        const inputFqn = this._typeNames.get('CoreBindRequest')
        const outputFqn = this._typeNames.get('CoreBindReply')
        const inputType = this._protoTypes.get(inputFqn)
        const outputType = this._protoTypes.get(outputFqn)
        const req = inputType.encode(inputType.create(input)).finish()
        const msgs = await this.framed.writeRead(new DwarfMessage(0, req))
        if (msgs[0].id === RPC.REPLY.FAIL) {
            console.error(msgs[0])
            return null
        } else {
            return outputType.toObject(outputType.decode(msgs[0].data))
        }
    }
/**
     * The only predefined RPC method.  Gets the method IDs of other methods.
     * @param {string} method
     * @param {string} inputMsg
     * @param {string} outputMsg
     * @param {?string=} plugin
     * @returns {?{assignedId: number}}
     */
The only predefined RPC method.  Gets the method IDs of other methods.
The only predefined RPC method . Gets the method IDs of other methods .
async BindMethod (method, inputMsg, outputMsg, plugin) {
        const input = {
            method: method, inputMsg: inputMsg, outputMsg: outputMsg, plugin: plugin
        }
        const inputFqn = this._typeNames.get('CoreBindRequest')
        const outputFqn = this._typeNames.get('CoreBindReply')
        const inputType = this._protoTypes.get(inputFqn)
        const outputType = this._protoTypes.get(outputFqn)
        const req = inputType.encode(inputType.create(input)).finish()
        const msgs = await this.framed.writeRead(new DwarfMessage(0, req))
        if (msgs[0].id === RPC.REPLY.FAIL) {
            console.error(msgs[0])
            return null
        } else {
            return outputType.toObject(outputType.decode(msgs[0].data))
        }
    }
async BindMethod ( method , inputMsg , outputMsg , plugin ) { const input = { method : method , inputMsg : inputMsg , outputMsg : outputMsg , plugin : plugin } const inputFqn = this . _typeNames . get ( 'CoreBindRequest' ) const outputFqn = this . _typeNames . get ( 'CoreBindReply' ) const inputType = this . _protoTypes . get ( inputFqn ) const outputType = this . _protoTypes . get ( outputFqn ) const req = inputType . encode ( inputType . create ( input ) ) . finish ( ) const msgs = await this . framed . writeRead ( new DwarfMessage ( 0 , req ) ) if ( msgs [ 0 ] . id === RPC . REPLY . FAIL ) { console . error ( msgs [ 0 ] ) return null } else { return outputType . toObject ( outputType . decode ( msgs [ 0 ] . data ) ) } }
The only predefined RPC method.
The only predefined RPC method .