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

Fail fast if trying to set browser WebSocket headers #4676

Merged
merged 6 commits into from
Feb 10, 2023

Conversation

martinbonnin
Copy link
Contributor

The WebSocket browser API unfortunately doesn't support setting headers so it can be surprising. Fail fast in that case. Many thanks @sproctor for diving into this one.

@martinbonnin martinbonnin requested a review from BoD as a code owner February 9, 2023 17:16
@netlify
Copy link

netlify bot commented Feb 9, 2023

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 22a8178
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/63e64d1549c76a00084d0b66

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@martinbonnin martinbonnin merged commit 684931a into main Feb 10, 2023
@martinbonnin martinbonnin deleted the no-js-websocket-headers branch February 10, 2023 20:30
BoD pushed a commit that referenced this pull request Mar 14, 2023
* throw early if trying to set headers to a browser WebSocket

* add a browser test

* remove debug

* always close the client

* add import

* do not try to run the macos tests

(cherry picked from commit 684931a)
@martinbonnin martinbonnin mentioned this pull request Mar 15, 2023
@martinbonnin martinbonnin mentioned this pull request Apr 3, 2023
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