diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 21b3e8e..a52ddb6 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ }, define: { "import.meta.env.VITE_HTTP_API_URL": JSON.stringify( - "http://localhost:3000", //"http://13.251.229.198:3000", //"http://localhost:3000", + "http://13.251.229.198:3000", //"http://localhost:3000", ), }, }); diff --git a/src/core/ws.ts b/src/core/ws.ts index d012775..1f9ea73 100644 --- a/src/core/ws.ts +++ b/src/core/ws.ts @@ -163,6 +163,7 @@ export class Subscriber { try { logger.info(`doing a reconnect ${this.ckbRpcUrl}`); this.ws = new WebSocket(this.ckbRpcUrl); + this.run(); } catch (error: unknown) { logger.error( `${this.ckbRpcUrl} reconnect failed: ${(error as Error).message}, shutting down...`,