WebSocket Frames: Opcodes, Masking & Close Codes
Below the handshake lies the WebSocket wire format (RFC 6455): the frame header, opcodes, mandatory client masking and why it exists, payload-length encoding, fragmentation, control frames, and close codes. The masking and length facts here are verified in Node.