docs.rodeo

MDN Web Docs mirror

CloseEvent

{{APIRef("Websockets API")}} {{AvailableInWorkers}} 

A CloseEvent is sent to clients using {{Glossary("WebSockets")}}  when the connection is closed. This is delivered to the listener indicated by the WebSocket object’s onclose attribute.

{{InheritanceDiagram}} 

Constructor

Instance properties

This interface also inherits properties from its parent, {{domxref("Event")}} .

Instance methods

This interface also inherits methods from its parent, {{domxref("Event")}} .

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN