canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.55k stars 795 forks source link

Session gets stuck and shows connected/connecting #498

Closed mohaaosman closed 1 year ago

mohaaosman commented 1 year ago

After a few days, the WhatsApp instance stops responding sometimes it's stuck on "connecting" or "connected" without any response. The only ways you can enable it is to delete and add again or restart the server.

Is there a way I can monitor the instance and watch if the variable is still in the session array, that way I can restart it without deleting or restarting the app?

eduamaral23 commented 1 year ago

If the device, where whatsapp is installed, is not online within 72 hours whatsapp, and the web becomes online, it disconnects automatically. What I do here is restart every day via cron Or you can also use npm restart.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.