mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
[ADD] Disconnected event
This commit is contained in:
@@ -27,5 +27,9 @@ client.on('message', (msg) => {
|
||||
// Send a new message to the same chat
|
||||
client.sendMessage(msg.from, 'pong');
|
||||
}
|
||||
});
|
||||
|
||||
client.on('disconnected', () => {
|
||||
console.log('Client was logged out');
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user