diff --git a/src/Client.js b/src/Client.js index db02e21..202e7d9 100644 --- a/src/Client.js +++ b/src/Client.js @@ -430,6 +430,15 @@ class Client extends EventEmitter { }, chatId); } + /** + * Force reset of connection state for the client + */ + async resetState(){ + await this.pupPage.evaluate(() => { + window.Store.AppState.phoneWatchdog.shiftTimer.forceRunNow(); + }); + } + } module.exports = Client;