Skip to content

docs: clarify Upgrader subprotocol negotiation - #1026

Open
VedantMadane wants to merge 1 commit into
gorilla:mainfrom
VedantMadane:docs/upgrader-subprotocols
Open

docs: clarify Upgrader subprotocol negotiation#1026
VedantMadane wants to merge 1 commit into
gorilla:mainfrom
VedantMadane:docs/upgrader-subprotocols

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

Improve Upgrader documentation for WebSocket subprotocol negotiation.

Documents both built-in negotiation via Upgrader.Subprotocols and application-managed negotiation using Subprotocols(r) plus the Sec-Websocket-Protocol response header. Also notes that built-in negotiation overrides a protocol set only on the response header.

Fixes #404

@VedantMadane
VedantMadane force-pushed the docs/upgrader-subprotocols branch from 883d8da to 11a5d55 Compare August 22, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve upgrader documentation regarding protocols

1 participant