feat: send online status

close #69
This commit is contained in:
Pedro Lopez
2020-04-11 18:56:23 -04:00
parent 8714e90df9
commit 7eb7fa8e28

View File

@@ -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}