Question: How to unload inactive WhatsApp clients without losing session data?
I'm building a website that uses the whatsapp-api to manage multiple accounts for different users. When a user becomes inactive (detected via WebSocket), I want to terminate their client/browser session to reduce resource usage, but without losing the authentication/session data, so that the client can be reinitialized when the user logs in again.
Is this possible with the current APIs? If not, what approach would you recommend?
At this moment, this is not implemented. Feel free to open PR.
Just implemented this functionality in forked project. Feel free to switch https://github.com/avoylenko/wwebjs-api
Thanks a lot! I tested it using the main branch, and it's working perfectly. Looking forward to the release of the official Docker image.