diff --git a/src/controllers/browser.ts b/src/controllers/browser.ts index a368bdaa8..5f513ddbd 100644 --- a/src/controllers/browser.ts +++ b/src/controllers/browser.ts @@ -139,6 +139,7 @@ export async function injectApi(page: Page) { await page .evaluate(() => { WPP.chat.defaultSendMessageOptions.createChat = true; + WPP.conn.setKeepAlive(true); }) .catch(() => false); await page.addScriptTag({