From 9a7bf38a2e1551841b9fe1721e232defb3a1177a Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Fri, 17 Sep 2021 23:39:32 +0200 Subject: Revamps WS landing page - translates WS interface subpages - fixes #2139 (#2271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revamps WS landing page - translates WS interface subpages - fixes #2139 * Ajout espace insécable Co-authored-by: Jb Audras --- files/fr/web/api/websocket/readystate/index.html | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/fr/web/api/websocket/readystate/index.html (limited to 'files/fr/web/api/websocket/readystate/index.html') diff --git a/files/fr/web/api/websocket/readystate/index.html b/files/fr/web/api/websocket/readystate/index.html new file mode 100644 index 0000000000..d33114d5f5 --- /dev/null +++ b/files/fr/web/api/websocket/readystate/index.html @@ -0,0 +1,56 @@ +--- +title: WebSocket.readyState +slug: Web/API/WebSocket/readyState +browser-compat: api.WebSocket.readyState +--- +

{{APIRef("Web Sockets API")}}

+ +

La propriété en lecture seule WebSocket.readyState renvoie l'état courant de la connexion WebSocket.

+ +

Syntaxe

+ +
+var readyState = uneWebSocket.readyState;
+
+ +

Valeur

+ +

Cette propriété peut valoir l'une des valeurs de type unsigned short suivantes :

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ValeurÉtatDescription
0CONNECTINGLa socket a été créée. La connexion n'est pas encore ouverte.
1OPENLa connexion est ouverte et prête pour la communication.
2CLOSINGLa connexion est en cours de fermeture.
3CLOSEDLa connexion est fermée ou n'a pas pu être ouverte.
+ +

Spécifications

+ +

{{Specifications}}

+ +

Compatibilité des navigateurs

+ +

{{Compat}}

-- cgit v1.2.3-54-g00ecf