Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
A sent ping indicates a request that the sender wants to receive a发送 ping 表示发送方希望收到 pong. A响应。pongis a response to a ping. Pongs may be sent unsolicited, at any time. One use for an unsolicited pong is to inform the remote peer that the session is still active after a long period of inactivity. A close frame indicates that the remote peer wishes to close the WebSocket connection. The connection is considered gracefully closed when each side has sent and received a close frame.是对 ping 的回复,也可以在任何时候主动发送。主动发送 pong 的一个用途是,在长时间没有数据传输时,告知远端对端连接仍然活跃。close 帧表示对端请求关闭 WebSocket 连接。当双方都完成发送并接收到 close 帧后,连接视为已正常关闭。