From 8ff7839071bfb03491f7390e69bc76b00b8fc952 Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Mon, 13 Jul 2020 16:34:09 +0530 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 293bf4e..8dc12f0 100644 --- a/README.md +++ b/README.md @@ -157,9 +157,9 @@ Implement the following callbacks in your code: console.log(sent + " acknowledged message(s) " + json.ids + " as " + json.type + " at " + json.timestamp) }) ``` -- Called when the connection gets disconnected (either the server loses internet or the phone gets unpaired) +- Called when the connection gets disconnected (either the server loses internet, the phone gets unpaired, or the connection is taken over from somewhere) ``` ts - client.setOnUnexpectedDisconnect (err => console.log ("disconnected unexpectedly: " + err) ) + client.setOnUnexpectedDisconnect (reason => console.log ("disconnected unexpectedly: " + reason) ) ``` - Called when you log into WhatsApp Web somewhere else ``` ts