Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
AWebSocketsession begins when a client sends the会话的建立过程如下:客户端在已建立的连接上发送 HTTP/1.1 [@https://tools.ietf.org/html/rfc7230#section-6.7 Upgrade]request for [@https://tools.ietf.org/html/rfc6455#section-1.3 WebSocket] on an established connection, and the server sends an appropriate response indicating that the request was accepted and that the connection has been upgraded. The Upgrade request must include the请求,服务器则返回相应响应,表示接受该升级请求。该 Upgrade 请求必须包含 [@https://tools.ietf.org/html/rfc7230#section-5.4 Host]field, and the字段以及所请求资源的 [@https://tools.ietf.org/html/rfc7230#section-5.3target] of the resource to request. A typical HTTP Upgrade request created and sent by the implementation will look like this:目标]。由实现创建并发送的典型 HTTP Upgrade 请求如下所示: