[ADD] Disconnected event
This commit is contained in:
parent
812e3dc7a7
commit
9032025920
4 changed files with 17 additions and 6 deletions
|
|
@ -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');
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue