Share via


DisconnectedEventArgs interface

Arguments provided when a connection is lost

Properties

code

WebSocket close code

reason

Close reason

timestamp

When the disconnection occurred

wasClean

Whether the close was clean

Property Details

code

WebSocket close code

code: number

Property Value

number

reason

Close reason

reason: string

Property Value

string

timestamp

When the disconnection occurred

timestamp: Date

Property Value

Date

wasClean

Whether the close was clean

wasClean: boolean

Property Value

boolean