``` this.providerWs = new WsProvider( [ process.env.SUBSTRATE_WS_URL!, ], 0 ); await this.providerWs.connect(); await this.providerWs.isReady; this.substrateWs = await new ApiPromise({ provider: this.providerWs, types: types, rpc: rpc, noInitWarn: true, initWasm: false, throwOnConnect: false, throwOnUnknown: false, }); ``` when this happend on the substrate rpc ``` API/INIT: Runtime version updated to spec=273, tx=1 ``` the error occured ``` 31 | const dynamic_info_bytes = await this.substrateWs.call.subnetInfoRuntimeApi.getAllDynamicInfo(); ^ TypeError: undefined is not an object (evaluating '(await this.substrate.getSubstrateWs()).call.subnetInfoRuntimeApi.getAllDynamicInfo') ``` the only work after reconnect/restart the substrate ws manually Anyway to handle it automatically or without restart the ws?