From 1d7d86827c780e5e062130029d86742f3fdf251d Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Wed, 7 Feb 2024 05:21:45 +0900 Subject: [PATCH] Place The WebSocket Protocol in tags --- index.bs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.bs b/index.bs index 5e01f56..b1fe0b2 100644 --- a/index.bs +++ b/index.bs @@ -803,7 +803,7 @@ state=], but is not exposed to JavaScript. array is a subprotocol name. The connection will only be established if the server reports that it has selected one of these subprotocols. The subprotocol names have to match the requirements for elements that comprise the value of \``Sec-WebSocket-Protocol`\` fields as - defined by The WebSocket protocol. [[!WSP]] + defined by The WebSocket Protocol. [[!WSP]] : {{WebSocketStreamOptions/signal}} :: An {{AbortSignal}} that can be used to abort the handshake. After the handshake is complete, @@ -885,8 +885,8 @@ state=], but is not exposed to JavaScript. otherwise an empty sequence. 1. If any of the values in |protocols| occur more than once or otherwise fail to match the requirements for elements that comprise the value of - \``Sec-WebSocket-Protocol`\` fields as defined by The WebSocket protocol, - then throw a "{{SyntaxError}}" {{DOMException}}. [[!WSP]] + \``Sec-WebSocket-Protocol`\` fields as defined by The WebSocket + Protocol, then throw a "{{SyntaxError}}" {{DOMException}}. [[!WSP]] 1. Set [=this=]'s [=WebSocketStream/url=] to |urlRecord|. 1. Set [=this=]'s [=WebSocketStream/opened promise=] and [=WebSocketStream/closed promise=] to new promises. @@ -1259,9 +1259,9 @@ To close the WebSocket for a {WebSocket} or {WebSocketStream} [=this= If |code| is null and |reason| is the empty string, the WebSocket Close message must not have a body. -

The WebSocket Protocol erroneously states that the status code is required for the [=start the WebSocket closing handshake=] algorithm. - +

The WebSocket Protocol erroneously states that the status code is + required for the [=start the WebSocket closing handshake=] + algorithm. if |reason| is non-empty but |code| is null, then set |code| to 1000 ("Normal Closure"). @@ -1289,7 +1289,7 @@ To close the WebSocket for a {WebSocket} or {WebSocketStream} [=this= # Ping and Pong frames # {#ping-and-pong-frames} -The WebSocket protocol defines Ping and Pong frames that can be used for keep-alive, +The WebSocket Protocol defines Ping and Pong frames that can be used for keep-alive, heart-beats, network status probing, latency instrumentation, and so forth. These are not currently exposed in the API.