【发布时间】:2014-08-20 14:25:57
【问题描述】:
我正在尝试理解 websocket 协议https://www.rfc-editor.org/rfc/rfc6455
但不明白续帧是什么。如果我正在制作一个 websocket 客户端,我希望服务器什么时候发送这个?我想什么时候寄? 上面的参考资料几乎没有关于延续框架是什么或做什么,或者客户端(或服务器)应该如何处理它的信息。 来自协议规范:
操作码:4 位
Defines the interpretation of the "Payload data". If an unknown
opcode is received, the receiving endpoint MUST _Fail the
WebSocket Connection_. The following values are defined.
* %x0 denotes a continuation frame
这是对延续框架的仅有的三个引用之一,它并没有给我太多的继续。
我应该忽略带有此操作码的任何帧吗?
【问题讨论】:
标签: websocket protocols specifications