subprotocol

The application-level message format agreed on top of a WebSocket during the handshake, named in the Sec-WebSocket-Protocol header.

In more detail

Naming and versioning it lets client and server check they speak the same message contract before any data flows. The client offers a list and the server picks one, or refuses the connection.

Related terms

Taught in

References