1,websocket连接建立流程

【netty】netty的websocketframe

备注:1,2负责建立http连接;

        3,4负责升级http连接至websocket连接,此时不依赖http连接,依赖于tcp连接通信,http连接还在(除非刷新或重新请求)

2,websocketframe详解

【netty】netty的websocketframe

 

名称 解释

BinaryWebSocketFrame

二进制数据

CloseWebSocketFrame

结束

ContinuationWebSocketFrame

数据被拆分为多个websocketframe

PingWebSocketFrame

二进制数据

PongWebSocketFrame

二进制数据

TextWebSocketFrame

Utf-8数据

   

3,websocket实现草案17

还在翻译中,没对比和前面版本的不同,有时间在写吧= =1

转载于:https://www.cnblogs.com/huxiaoyun90/archive/2013/06/05/3118866.html

相关文章:

  • 2021-10-20
  • 2021-06-12
  • 2022-02-21
  • 2021-11-23
  • 2021-06-04
  • 2021-09-10
  • 2021-08-13
猜你喜欢
  • 2021-08-30
  • 2021-09-13
  • 2021-06-26
  • 2022-01-08
  • 2021-11-07
  • 2021-06-16
相关资源
相似解决方案