读书人

websocket的ping跟pong

发布时间: 2013-07-01 12:33:04 作者: rapoo

websocket的ping和pong
作用:A Ping frame may serve either as a keepalive or as a means to verify that the remote endpoint is still responsive.

Ping和Pong的关系:
1. Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in response...
2. A Pong frame sent in response to a Ping frame must have identical "Application data" as found in the message body of the Ping frame being replied to.


见:http://tools.ietf.org/html/rfc6455#section-5.5

读书人网 >Web前端

热点推荐