Websocket Protocol Continuation Frame

I am trying to understand the websocket protocol http://tools.ietf.org/html/rfc6455

but they don’t understand what the continuation frame is. If I create a websocket client, when do I expect the server to send this? When do I want to send it? In the link above there is very little information about what the continuation frame is or not, or how the client (or server) should process it. From the protocol specification:

Operation Code: 4 bit

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 

This is one of three references to the sequel, and it does not give me much.

Should I just ignore any frames with this opcode?

+6
source share
1 answer

No, you should not ignore the scope of the continuation. If you do not implement them, your WebSocket implementation will not comply with RFC6455. Continuation frames are for fragmented WebSocket messages. All frames except the first are called continuation frames. All but the first and last are called non-exclusive continuation frames.

+4
source

Source: https://habr.com/ru/post/974104/


All Articles