From 27b4f4a9cc1353c3fe1664f3d62a72b2b67e38ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Sat, 12 Apr 2025 21:48:25 +0700 Subject: [PATCH] feat: wait for 15s before execute the keepAlive strategy --- src/proxy/reflect4.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/proxy/reflect4.ts b/src/proxy/reflect4.ts index 9f8386e..bb5ac7a 100644 --- a/src/proxy/reflect4.ts +++ b/src/proxy/reflect4.ts @@ -24,6 +24,8 @@ async function spawn(context: BrowserContext, targetUrl: string) { } await targetInput.fill(targetUrl); await targetInput.press("Enter"); + logger.info(`[${spawnId}] Navigating to ${targetUrl}`); + await page.waitForTimeout(15000); // Wait for 15 second to let the page load // Keep-alive the page open for 5 minutes then refresh if (targetUrl.startsWith("https://www.twitch.tv/")) { await twitch.keepAlive(page, spawnId);