async _initialize () {
        // cache method IDs, and construct remote method
        for (const [plugin, , methods] of FUNC_DEFS) {
            for (const [name, [inputShort, outputShort]] of Object.entries(methods)) {
                const inputFqn = this._typeNames.get(inputShort)
                const outputFqn = this._typeNames.get(outputShort)

                const idReply = await this.BindMethod(name, inputFqn, outputFqn, plugin)
                this._methodIds[name] = idReply != null ? idReply['assignedId'] : null

                if (idReply != null && name !== 'BindMethod') {
                    const inputType = this._protoTypes.get(inputFqn)
                    const outputType = this._protoTypes.get(outputFqn)
                    this._remoteMethods.set(
                        name,
                        this._remoteMethodFactory(this._methodIds[name], inputType, outputType)
                    )
                    this[name] = this._remoteMethods.get(name)
                }
            }
        }
        this._initialized_res()
        return true
    }
/**
     * Called after connected, to load the current method IDs of known methods.
     */
Called after connected, to load the current method IDs of known methods.
Called after connected to load the current method IDs of known methods .
async _initialize () {
        for (const [plugin, , methods] of FUNC_DEFS) {
            for (const [name, [inputShort, outputShort]] of Object.entries(methods)) {
                const inputFqn = this._typeNames.get(inputShort)
                const outputFqn = this._typeNames.get(outputShort)
                const idReply = await this.BindMethod(name, inputFqn, outputFqn, plugin)
                this._methodIds[name] = idReply != null ? idReply['assignedId'] : null
                if (idReply != null && name !== 'BindMethod') {
                    const inputType = this._protoTypes.get(inputFqn)
                    const outputType = this._protoTypes.get(outputFqn)
                    this._remoteMethods.set(
                        name,
                        this._remoteMethodFactory(this._methodIds[name], inputType, outputType)
                    )
                    this[name] = this._remoteMethods.get(name)
                }
            }
        }
        this._initialized_res()
        return true
    }
async _initialize ( ) { for ( const [ plugin , , methods ] of FUNC_DEFS ) { for ( const [ name , [ inputShort , outputShort ] ] of Object . entries ( methods ) ) { const inputFqn = this . _typeNames . get ( inputShort ) const outputFqn = this . _typeNames . get ( outputShort ) const idReply = await this . BindMethod ( name , inputFqn , outputFqn , plugin ) this . _methodIds [ name ] = idReply != null ? idReply [ 'assignedId' ] : null if ( idReply != null && name !== 'BindMethod' ) { const inputType = this . _protoTypes . get ( inputFqn ) const outputType = this . _protoTypes . get ( outputFqn ) this . _remoteMethods . set ( name , this . _remoteMethodFactory ( this . _methodIds [ name ] , inputType , outputType ) ) this [ name ] = this . _remoteMethods . get ( name ) } } } this . _initialized_res ( ) return true }
Called after connected, to load the current method IDs of known methods.
Called after connected to load the current method IDs of known methods .
// cache method IDs, and construct remote method