Skip to content

Introduce the requireProtocolSelection option#2314

Open
lpinca wants to merge 1 commit intomasterfrom
add/require-protocol-selection-option
Open

Introduce the requireProtocolSelection option#2314
lpinca wants to merge 1 commit intomasterfrom
add/require-protocol-selection-option

Conversation

@lpinca
Copy link
Member

@lpinca lpinca commented Mar 1, 2026

To comply with the WHATWG specification, the connection must fail if the server does not return the Sec-WebSocket-Protocol header when a client requests specific subprotocols. However, some servers omit this header, as such behavior is permitted by RFC 6455.

This new option adds the ability to skip that validation, enabling the client to work with servers that are not WHATWG-compliant.

Refs: #1862 (comment)

To comply with the WHATWG specification, the connection must fail if the
server does not return the `Sec-WebSocket-Protocol` header when a client
requests specific subprotocols. However, some servers omit this header,
as such behavior is permitted by RFC 6455.

This new option adds the ability to skip that validation, enabling the
client to work with servers that are not WHATWG-compliant.

Refs: #1862 (comment)
@lpinca
Copy link
Member Author

lpinca commented Mar 1, 2026

cc: @pimterry

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