From ba82005f11b8ecc8dacee08304b7d3a66bbea6b0 Mon Sep 17 00:00:00 2001 From: Edgard Date: Mon, 25 Apr 2022 00:17:25 -0300 Subject: [PATCH] feat: Improved chat state to keep alive and online --- src/controllers/browser.ts | 1 + 1 file changed, 1 insertion(+) 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({