class js.html.CloseEvent extends Event
Available on js
A CloseEvent
is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket
object's onclose
attribute.
Documentation for this class was provided by MDN.
Instance Fields
The WebSocket connection close code provided by the server. See Status codes for possible values.