mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
handle tags via EventEmitter + replace 'intermediate-close' with 'ws-close'
This commit is contained in:
@@ -215,9 +215,9 @@ export class WAConnection extends Base {
|
||||
emitQR ()
|
||||
regenQR ()
|
||||
} catch (error) {
|
||||
this.logger.error ({ error }, `error in QR gen`)
|
||||
this.logger.warn ({ error }, `error in QR gen`)
|
||||
if (error.status === 429) { // too many QR requests
|
||||
this.rejectPendingConnection (error)
|
||||
this.emit ('ws-close', { reason: error.message })
|
||||
}
|
||||
}
|
||||
}, this.connectOptions.regenerateQRIntervalMs)
|
||||
|
||||
Reference in New Issue
Block a user