Type Alias: ConnectionState
ConnectionState:
object
Defined in: src/Types/State.ts:17
Type declaration
connection
connection:
WAConnectionState
connection is now open, connecting or closed
isNewLogin?
optionalisNewLogin:boolean
is this a new login
isOnline?
optionalisOnline:boolean
if the client is shown as an active, online client. If this is false, the primary phone and other devices will receive notifs
lastDisconnect?
optionallastDisconnect:object
the error that caused the connection to close
lastDisconnect.date
date:
Date
lastDisconnect.error
error:
Boom|Error|undefined
legacy?
optionallegacy:object
legacy connection options
legacy.phoneConnected
phoneConnected:
boolean
legacy.user?
optionaluser:Contact
qr?
optionalqr:string
the current QR code
receivedPendingNotifications?
optionalreceivedPendingNotifications:boolean
has the device received all pending notifications while it was offline