Skip to content

Update initialization of WebSocket handler in GraphQlWebMvcAutoConfiguration #30641

New issue

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

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

Already on GitHub? # to your account

Conversation

rstoyanchev
Copy link
Contributor

GraphQlWebSocketHandler now exposes a method to create the WebSocketHttpRequestHandler instance to use, that's pre-configured with a HandshakeInterceptor for context propagation. This is a result of changes for spring-projects/spring-graphql#342.

This pull request updates how the WebSocketHttpRequestHandler is created in the auto configuration, making use of this new method, in order to complete the fix for spring-projects/spring-graphql#342.

As a result of changes for
spring-projects/spring-graphql#342,
GraphQlWebSocketHandler now exposes a method to create the
WebSocketHttpRequestHandler, pre-configured with a context propagating
HandshakeInterceptor. This commit updates the autoconfig to use it.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 12, 2022
@bclozel bclozel self-assigned this Apr 12, 2022
@bclozel bclozel added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 12, 2022
@bclozel bclozel added this to the 2.7.0-RC1 milestone Apr 12, 2022
@bclozel bclozel closed this in b91bfc7 Apr 12, 2022
@rstoyanchev rstoyanchev deleted the graphql-websocket-context-propagation branch October 17, 2022 12:52
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants