chore: update legacy connection close msgs

This commit is contained in:
Adhiraj Singh
2021-12-20 12:37:18 +05:30
parent dbed7fef74
commit 258b2f2747
2 changed files with 6 additions and 6 deletions

View File

@@ -34,11 +34,11 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
})
// add close listener
ws.on('ws-close', (error: Boom | Error) => {
logger.info({ error }, 'Closed connection to WhatsApp')
logger.info({ error }, 'closed connection to WhatsApp')
initTimeout && clearTimeout(initTimeout)
// if no reconnects occur
// send close event
updateState({
updateState({
connection: 'close',
qr: undefined,
lastDisconnect: {