@@ -62,7 +62,7 @@ specification.
62
62
`GraphQlHttpHandler` can be exposed as an HTTP endpoint by declaring a `RouterFunction`
63
63
bean and using the `RouterFunctions` from Spring MVC or WebFlux to create the route. The
64
64
Boot starter does this, see the
65
- {spring-boot-ref-docs}/web.html#web.graphql.web-endpoints [Web Endpoints] section for
65
+ {spring-boot-ref-docs}/web.html#web.graphql.transports.http-websocket [Web Endpoints] section for
66
66
details, or check `GraphQlWebMvcAutoConfiguration` or `GraphQlWebFluxAutoConfiguration`
67
67
it contains, for the actual config.
68
68
@@ -103,11 +103,12 @@ The `graphql-ws` project lists a number of
103
103
https://github.com/enisdenjo/graphql-ws#recipes[recipes] for client use.
104
104
105
105
`GraphQlWebSocketHandler` can be exposed as a WebSocket endpoint by declaring a
106
- `SimpleUrlHandlerMapping` bean and using it to map the handler to a URL path. The Boot
107
- starter has options to enable this, see the
108
- {spring-boot-ref-docs}/web.html#web.graphql.web-endpoints[Web Endpoints] section for
109
- details, or check `GraphQlWebMvcAutoConfiguration` or `GraphQlWebFluxAutoConfiguration`
110
- it contains, for the actual config.
106
+ `SimpleUrlHandlerMapping` bean and using it to map the handler to a URL path. By default,
107
+ the Boot starter does not expose a GraphQL over WebSocket endpoint, but it's easy to
108
+ enable it by adding a property for the endpoint path. Please, see the
109
+ {spring-boot-ref-docs}/web.html#web.graphql.transports.http-websocket[Web Endpoints]
110
+ section for details, or check the `GraphQlWebMvcAutoConfiguration` or the
111
+ `GraphQlWebFluxAutoConfiguration` for the actual Boot starter config.
111
112
112
113
The Spring for GraphQL repository contains a WebFlux
113
114
{github-main-branch}/samples/webflux-websocket[WebSocket sample] application.
@@ -216,7 +217,7 @@ class HeaderInterceptor implements WebGraphQlInterceptor {
216
217
217
218
The `WebGraphQlInterceptor` chain can be updated through the `WebGraphQlHandler` builder,
218
219
and the Boot starter uses this, see Boot's section on
219
- {spring-boot-ref-docs}/web.html#web.graphql.web-endpoints [Web Endpoints].
220
+ {spring-boot-ref-docs}/web.html#web.graphql.transports.http-websocket [Web Endpoints].
220
221
221
222
The <<server-rsocket>> transport handler delegates to a similar `GraphQlInterceptor`
222
223
chain that you can use to intercept GraphQL over RSocket requests.
@@ -517,7 +518,7 @@ public class RequestAttributesAccessor implements ThreadLocalAccessor {
517
518
A `ThreadLocalAccessor` can be registered in the <<server-interception,WebGraphHandler>>
518
519
builder. The Boot starter detects beans of this type and automatically registers them for
519
520
Spring MVC application, see the
520
- {spring-boot-ref-docs}/web.html#web.graphql.web-endpoints [Web Endpoints] section.
521
+ {spring-boot-ref-docs}/web.html#web.graphql.transports.http-websocket [Web Endpoints] section.
521
522
522
523
523
524
[[execution-context-webflux]]
0 commit comments