--- title: close slug: Web/API/WebSocket/close_event translation_of: Web/API/WebSocket/close_event ---

Le gestionnaire de fermuture (close) est exécuté lorsqu'une connexion avec un socket Web est fermée.

Informations générales

Spécification
WebSocket
Interface
Event
Propagation
Non
Annulable
Non
Cible
WebSocket
Action par défaut
Aucune

Propriétés

Property Type Description
target {{readonlyInline}} {{domxref("EventTarget")}} The event target (the topmost target in the DOM tree).
type {{readonlyInline}} {{domxref("DOMString")}} The type of event.
bubbles {{readonlyInline}} {{jsxref("Boolean")}} Whether the event normally bubbles or not.
cancelable {{readonlyInline}} {{jsxref("Boolean")}} Whether the event is cancellable or not.

Evénements liés

Voir aussi