Sec-WebSocket-Protocol Header

Table of Contents

About

The HTTP Sec-WebSocket-Protocol request and response header is used in the WebSocket opening handshake to negotiate a sub-protocol to use in the communication; this can be a well understood protocol, such as SOAP or WAMP, or a custom protocol understood by the client and server 1.

Anki

References


  1. MDN. “Sec-WebSocket-Protocol header”. Available at: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Protocol . (Accessed: [2025-05-20 Tue 07:07]). ↩︎

Random Posts