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}