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

Ktor Server: set "graphql-transport-ws" as default protocol to graphQLSubscriptionsRoute #1804

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

thevietto
Copy link
Contributor

📝 Description

This is a small fix to set graphql-transport-ws subprotocol as (sensible) default for Ktor server graphQLSubscriptionsRoute.

Without that line, users may encounter issues when sending requests using popular GQL clients like Apollo or even bundled GraphiQL UI, because of they are sending Sec-Websocket-Protocol=graphql-transport-ws header and that is being rejected by Ktor.

Users may still override this value, if needed

🔗 Related Issues

#1756

@dariuszkuc dariuszkuc merged commit 951ddb8 into ExpediaGroup:master Jun 26, 2023
@dariuszkuc
Copy link
Collaborator

Thanks for the fix!

@dariuszkuc dariuszkuc added the changes: patch Changes require a patch version label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version
Development

Successfully merging this pull request may close these issues.

None yet

2 participants