Skip to content

Rename WebSocketDataCallback's frame param from opcode to bits - #9

Open
heshammahamed wants to merge 1 commit into
masterfrom
docs/websocket-bits-opcode
Open

Rename WebSocketDataCallback's frame param from opcode to bits#9
heshammahamed wants to merge 1 commit into
masterfrom
docs/websocket-bits-opcode

Conversation

@heshammahamed

Copy link
Copy Markdown
Contributor

The parameter was named opcode, but civetweb actually passes the raw first byte of the WebSocket frame header (FIN flag + reserved bits + the real opcode packed into the low 4 bits), not the opcode alone. Renamed to bits to match civetweb's own naming, and updated the docs (EN + AR) and examples to match this correct understanding.

The parameter was named `opcode`, but civetweb actually passes the raw
first byte of the WebSocket frame header (FIN flag + reserved bits +
the real opcode packed into the low 4 bits), not the opcode alone.
Renamed to `bits` to match civetweb's own naming, and updated the
docs (EN + AR) and examples to match this correct understanding.
@heshammahamed
heshammahamed requested a review from sarmadka August 25, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant