public class GraphQlWebSocketHandler extends Object implements WebSocketHandler
Constructor and Description |
---|
GraphQlWebSocketHandler(WebGraphQlHandler graphQlHandler,
CodecConfigurer codecConfigurer,
Duration connectionInitTimeout)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getSubProtocols() |
reactor.core.publisher.Mono<Void> |
handle(WebSocketSession session) |
public GraphQlWebSocketHandler(WebGraphQlHandler graphQlHandler, CodecConfigurer codecConfigurer, Duration connectionInitTimeout)
graphQlHandler
- common handler for GraphQL over WebSocket requestscodecConfigurer
- codec configurer for JSON encoding and decodingconnectionInitTimeout
- how long to wait after the establishment of
the WebSocket for the "connection_ini"
message from the client.public List<String> getSubProtocols()
getSubProtocols
in interface WebSocketHandler
public reactor.core.publisher.Mono<Void> handle(WebSocketSession session)
handle
in interface WebSocketHandler