From 7eb7fa8e2833c48f29492743f150c0939be6d5aa Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Sat, 11 Apr 2020 18:56:23 -0400 Subject: [PATCH] feat: send online status close #69 --- src/Client.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Client.js b/src/Client.js index 9e30525..2bed2c2 100644 --- a/src/Client.js +++ b/src/Client.js @@ -514,6 +514,15 @@ class Client extends EventEmitter { }); } + /** + * Marks the client as online + */ + async sendPresenceAvailable() { + return await this.pupPage.evaluate(() => { + return window.Store.Wap.sendPresenceAvailable(); + }); + } + /** * Enables and returns the archive state of the Chat * @returns {boolean}