Skip to content

Commit 0bd8069

Browse files
author
Andreu Botella
authored
Editorial: Update the protocol alterations note to reflect the spec move (#8)
The note in "WebSocket protocol alterations" mentions the `WebSocket` API being defined in HTML, and references the HTML spec but not Fetch. This change updates it to reflect its new placement in the WebSockets standard.
1 parent 7fe0f18 commit 0bd8069

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ through a custom server.</p>
8383

8484
<div class=note>
8585
This section replaces part of the WebSocket protocol opening handshake client requirement to
86-
integrate it with algorithms defined in Fetch. This way CSP, cookies, HSTS, and other Fetch-related
87-
protocols are handled in a single location. Ideally the RFC would be updated with this language,
88-
but it is never that easy. The WebSocket API, defined in the HTML Standard, has been updated to use
89-
this language. [[!WSP]] [[!HTML]]
86+
integrate it with algorithms defined in <cite>Fetch</cite>. This way CSP, cookies, HSTS, and other
87+
<cite>Fetch</cite>-related protocols are handled in a single location. Ideally the RFC would be
88+
updated with this language, but it is never that easy. The {{WebSocket}} API, defined below, uses
89+
this language. [[!WSP]] [[!FETCH]]
9090

9191
The way this works is by replacing The WebSocket Protocol's "establish a WebSocket connection"
92-
algorithm with a new one that integrates with Fetch. "Establish a WebSocket connection" consists of
93-
three algorithms: setting up a connection, creating and transmiting a handshake request, and
94-
validating the handshake response. That layering is different from Fetch, which first creates a
95-
handshake, then sets up a connection and transmits the handshake, and finally validates the
96-
response. Keep that in mind while reading these alterations.
92+
algorithm with a new one that integrates with <cite>Fetch</cite>. "Establish a WebSocket
93+
connection" consists of three algorithms: setting up a connection, creating and transmiting a
94+
handshake request, and validating the handshake response. That layering is different from
95+
<cite>Fetch</cite>, which first creates a handshake, then sets up a connection and transmits the
96+
handshake, and finally validates the response. Keep that in mind while reading these alterations.
9797
</div>
9898

9999

0 commit comments

Comments
 (0)