Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[agent] Report the accepted websocket subprotocol back through the WS shim. #141

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

ojarjur
Copy link
Collaborator

@ojarjur ojarjur commented Oct 26, 2024

This PR adds a subprotocol field to the session message struct which is used at session creation time to report the websocket subprotocol (if any) that was accepted by the backend server.

The corresponding list of requested subprotocols from the client was already present in the forwarded request headers and is correctly forwarded to the backend; it's just the backend's response that was previously missing.

@ojarjur ojarjur merged commit f46a5db into master Oct 29, 2024
2 checks passed
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.

2 participants