首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

websocket的ping跟pong

2013-07-01 
websocket的ping和pong作用:A Ping frame may serve either as a keepalive or as a means toverify that

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

热点排行