The Sec-WebSocket-Protocol header specifies one or more WebSocket protocols that you wish to use, in order of preference . The first one that is supported by the server will be selected and returned by the server in a Sec-WebSocket-Protocol header included in the response.