class CloseEvent
extends Event

Constructors

new
CloseEvent(type: string, eventInitDict?: CloseEventInit)
[src]

Properties

readonly
code: number
[src]

Returns the WebSocket connection close code provided by the server.

readonly
reason: string
[src]

Returns the WebSocket connection close reason provided by the server.

readonly
wasClean: boolean
[src]

Returns true if the connection closed cleanly; false otherwise.