opcode

A small number in a frame header saying what kind of frame it is, such as text, binary, ping, pong or close.

In more detail

In WebSocket the first byte 0x81 means final fragment plus opcode 1, a text frame. Opcodes 8, 9 and 10 are the control frames close, ping and pong.

Related terms

Taught in

References