riccefarias / node-red-contrib-kore-whatsappbot

8 stars 5 forks source link

Close connection via input node message? #8

Open ConBeeUser opened 1 year ago

ConBeeUser commented 1 year ago

Dear riccefarias,

thank you very much for this node!

Could you please tell me how to close the connection via message from an input node? I've been asked several times why my WhatsApp-online-state is always shown as online, which of course is not intended. So I tried to just open a connection when needed and close it afterwards.

I've tried various attempts to properly close the connection of kore-whatsapp, but didn't succeed.

The attached screenshots only show a fraction of those attempts to close the connection. I tried to simulate some API-Calls from the whatsappbot library (If I remember correctly).

WA Close Connection 1 WA Close Connection 2 WA Close Connection 3

Something like "kill(reason: "MANUALLY_KILLED")"

If currently there is no possibility to close the connection manually, would you mind implementing the possibility to do so? That would be awesome!

Thank you very much and best regards!