문제

When I close() my websocket connection on the client side (FF) and debug my server side to see the incoming data, which I converted to hex to read it, I receive something like "8880825d04de" (still masked). On every close attempt I receive similar data "8880XXXXXX".

The mask should be "825d04de" because it changes each time and the RFC tells me that the close message of the client is masked. The 8880 confuses me because in the RFC the opcode which should indicate a close message is 0x8.

Could anyone explain this to me?

도움이 되었습니까?

해결책

Well, I'm guessing it breaks down like this:

8 - FIN
8 - close opcode
8 - MASK + 3 bits of 0 for payload length
0 - 4 bits of 0 for payload length
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top