js-bao-wss-client / StatusChangedEvent
Interface: StatusChangedEvent
Payload of the status event (client.on("status", ...)). Fired when the WebSocket connection state changes. net, when present, is a snapshot of the overall network status (as returned by client.getNetworkStatus()).
Properties
net?
optionalnet?:object
connected?
optionalconnected?:boolean
isOnline
isOnline:
boolean
lastError?
optionallastError?:string
lastOnlineAt?
optionallastOnlineAt?:string
mode
mode:
"auto"|"online"|"offline"
reason?
optionalreason?:NetworkTransitionReason
transport
transport:
"connected"|"connecting"|"disconnected"
status
status:
"connected"|"connecting"|"disconnected"