Examples of using The websocket connection in English and their translations into Chinese
{-}
-
Political
-
Ecclesiastic
-
Programming
The WebSocket connection close reason.
SHOULD NOT close the WebSocket connection arbitrarily.
If an unknown opcode is received,the receiving endpoint MUST Fail the WebSocket Connection.
Servers may close the WebSocket connection whenever desired.
The WebSocket connection uses the same ports as HTTP(80) and HTTPS(443), by default.
Keep in mind that this only closes the WebSocket connection.
To Close the WebSocket Connection, an endpoint closes the underlying TCP connection. .
Section 7.1.4 defines when_The WebSocket Connection is Closed_.
A closing of the WebSocket connection may be initiated by either endpoint, potentially simultaneously.
NOTE: Two endpoints may not agree on the value of The WebSocket Connection Close Code.
A closing of the WebSocket connection may be initiated by either endpoint, potentially simultaneously.
If this Close controlframe contains no status code,_The WebSocket Connection Close Code_ is considered to be 1005.
Certain algorithms, in particular during the opening handshake,require the client to_Fail the WebSocket Connection_.
To do so, the client MUST_Fail the WebSocket Connection_ as defined in Section 7.1.7.
If the WebSocket connection could not be established, it is also said that The WebSocket Connection is Closed, but not cleanly.¶.
If at any point the state of the WebSocket connection changes, the endpoint MUST abort the following steps.
Each endpoint will see the status code sent by the other end as The WebSocket Connection Close Code.
If any extensions(Section 9) have been negotiated for the WebSocket connection, additional considerations may apply as per the definition of those extensions.
If any of the components are invalid,the client MUST_Fail the WebSocket Connection_ and abort these steps.
If any extensions(Section 9) have been negotiated for the WebSocket connection, additional considerations may apply as per the definition of those extensions.
Once an endpoint has both sent and received a Close control frame,that endpoint SHOULD_Close the WebSocket Connection_ as defined in Section 7.1.1.
Certain algorithms require or recommend that the server Abort the WebSocket Connection during the opening handshake.
Unlike the other APIs on Windows,the browser takes care of closing the WebSocket connection automatically when it receives a close control frame.
After both sending and receiving a Close message,an endpoint considers the WebSocket connection closed and MUST close the underlying TCP connection. .
At this point the HTTP connection breaks down andis replaced by the WebSocket connection over the same underlying TCP/IP connection. .
If the TCP connection was closed after the WebSocket closing handshake was completed, the WebSocket connection is said to have been closed cleanly.¶.