ConnectionState: object
Defined in: src/Types/State.ts:17
Type declaration
connection
connection: WAConnectionState
connection is now open, connecting or closed
isNewLogin?
is this a new loginoptionalisNewLogin:boolean
isOnline?
if the client is shown as an active, online client. If this is false, the primary phone and other devices will receive notifsoptionalisOnline:boolean
lastDisconnect?
the error that caused the connection to closeoptionallastDisconnect:object
lastDisconnect.date
date: Date
lastDisconnect.error
error:Boom|Error|undefined
legacy?
legacy connection optionsoptionallegacy:object
legacy.phoneConnected
phoneConnected: boolean
legacy.user?
optionaluser:Contact
qr?
the current QR codeoptionalqr:string
reachoutTimeLock?
When you are in this state, WhatsApp prevents outgoing messages and calls.optionalreachoutTimeLock:ReachoutTimelockState
receivedPendingNotifications?
has the device received all pending notifications while it was offlineoptionalreceivedPendingNotifications:boolean