Subprotocols, Extensions, and Compression
Go deeper into the WebSocket protocol by negotiating application subprotocols and enabling extensions like per-message compression.
Beyond the Basics
The raw WebSocket protocol only moves bytes. Two negotiation mechanisms let you layer meaning and efficiency on top: subprotocols and extensions.
What Is a Subprotocol
A subprotocol is an agreed application-level message format, like a contract for what the bytes mean. Examples include wamp, mqtt, and graphql-ws.
All lessons in this course
- The WebSocket Handshake Explained
- WebSocket Data Framing and Messages
- Connection Lifecycle and States
- Subprotocols, Extensions, and Compression