public class GraphQlWebSocketHandler
extends java.lang.Object
implements org.springframework.web.reactive.socket.WebSocketHandler
| Constructor and Description |
|---|
GraphQlWebSocketHandler(WebGraphQlHandler graphQlHandler,
org.springframework.http.codec.ServerCodecConfigurer configurer,
java.time.Duration connectionInitTimeout)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getSubProtocols() |
reactor.core.publisher.Mono<java.lang.Void> |
handle(org.springframework.web.reactive.socket.WebSocketSession session) |
public GraphQlWebSocketHandler(WebGraphQlHandler graphQlHandler, org.springframework.http.codec.ServerCodecConfigurer configurer, java.time.Duration connectionInitTimeout)
graphQlHandler - common handler for GraphQL over WebSocket requestsconfigurer - codec configurer for JSON encoding and decodingconnectionInitTimeout - the time within which the CONNECTION_INIT type
message must be received.public java.util.List<java.lang.String> getSubProtocols()
getSubProtocols in interface org.springframework.web.reactive.socket.WebSocketHandlerpublic reactor.core.publisher.Mono<java.lang.Void> handle(org.springframework.web.reactive.socket.WebSocketSession session)
handle in interface org.springframework.web.reactive.socket.WebSocketHandler