An event that fires when a WebSocket connection closes.
See also:
Constructor
Variables
The WebSocket connection close code.
The reason the WebSocket connection closed.
Whether the connection closed cleanly.
Inherited Variables
Defined by Event
Always returns false in Node.js. Provided purely for completeness.
Deprecated: "Use stopPropagation() instead"
Alias for stopPropagation() if set to true.
Stability: 3 - Legacy.
True if the event was created with the cancelable option.
Always returns false in Node.js. Provided purely for completeness.
Is true if cancelable is true and preventDefault() has been called.
Returns 0 while an event is not being dispatched, 2 while it is being dispatched.
This is not used in Node.js and is provided purely for completeness.
The "abort" event is emitted with isTrusted set to true.
The value is false in all other cases.
Deprecated: "Use defaultPrevented instead"
True if the event has not been canceled.
Stability: 3 - Legacy.
Deprecated: "Use target instead"
Alias for target.
Stability: 3 - Legacy.
The millisecond timestamp when the Event object was created.
The event type identifier.
Inherited Methods
Defined by Event
Returns an array containing the current EventTarget as the only entry,
or empty if the event is not being dispatched.
This is not used in Node.js and is provided purely for completeness.
Deprecated: "Use the Event constructor instead"
Redundant with event constructors and incapable of setting composed.
Stability: 3 - Legacy. The WHATWG spec considers it deprecated.
Sets the defaultPrevented property to true if cancelable is true.
Stops the invocation of event listeners after the current one completes.
This is not used in Node.js and is provided purely for completeness.