CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the
Creates a new
This interface also inherits properties from its parent,
unsigned shortcontaining the close code sent by the server.
DOMStringindicating the reason the server closed the connection. This is specific to the particular server and sub-protocol.
Returns a boolean value that Indicates whether or not the connection was cleanly closed.
This interface also inherits methods from its parent,
|HTML Standard (HTML)|
BCD tables only load in the browser