open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.14k stars 600 forks source link

Feature: client.Refresh #582

Closed smashah closed 4 years ago

smashah commented 4 years ago

Detect when client has been refreshed and then reinject wapi, and make a method to force client to refresh and reinject the page. This may be a good way to manage memory usage

smashah commented 4 years ago

You can now refresh the page as a possible remedy to increased memory usage. Please see the documentation

await client.refresh()

https://open-wa.github.io/wa-automate-nodejs/classes/client.html#refresh