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

Subprotocol header #363

Merged
merged 5 commits into from
May 10, 2024
Merged

Subprotocol header #363

merged 5 commits into from
May 10, 2024

Conversation

conorbros
Copy link
Contributor

Add client-side handling for subprotocol header during handshake.

@conorbros
Copy link
Contributor Author

conorbros commented Feb 4, 2024

@daniel-abramov Are you interested in merging this?

@daniel-abramov
Copy link
Member

daniel-abramov commented Feb 5, 2024

Hey, I think we've forgotten about this one, sorry (though the code looks familiar as if I have already skewed through it once).

Generally, it looks ok - there is an intersection with #400 though, we'll need to check how to merge it without causing too many conflicts.

UPD: I'd also need to check why no CI pipeline was run for this PR.

@conorbros
Copy link
Contributor Author

Thanks for getting back to me. I'll update it once #400 is progressed.

@Its-Just-Nans Its-Just-Nans mentioned this pull request Mar 1, 2024
@Its-Just-Nans
Copy link
Contributor

Hello @conorbros

Here is a PR to merge shotover#1 to sync with the repo

Copy link
Contributor

@Its-Just-Nans Its-Just-Nans left a comment

Choose a reason for hiding this comment

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

Hi @conorbros

Can you please juste made this tiny changes to passe the CI ?

FYI CI error is here : https://github.com/snapview/tungstenite-rs/actions/runs/8841412949/job/24741691622

tests/handshake.rs Outdated Show resolved Hide resolved
@agalakhov
Copy link
Member

Ok, now it looks good. All tests are passed, the new code is covered with tests as well. Its time to merge.

@agalakhov agalakhov merged commit 564f10a into snapview:master May 10, 2024
6 checks passed
goto-bus-stop added a commit to apollographql/router that referenced this pull request Dec 13, 2024
This is the cause of the WebSocket test failures:
snapview/tungstenite-rs#363

In short, tungstenite in 0.22.0 started to validate that if you
requested a particular protocol, the server actually declared support
for that protocol.

In tests, our clients request the `graphql-transport-ws` protocol, but
the mock server doesn't declare support for it, so the client now fails
to connect.

This is worth calling out in the 2.0 migration guide, because it's
plausible that a misbehaving subgraph would work in 1.x, but no longer
work in 2.0.
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.

5 participants