public class GraphQlWebSocketHandler extends Object implements WebSocketHandler
Constructor and Description |
---|
GraphQlWebSocketHandler(WebGraphQlHandler graphQlHandler,
ServerCodecConfigurer configurer,
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, ServerCodecConfigurer configurer, Duration connectionInitTimeout)
graphQlHandler
- common handler for GraphQL over HTTP requestsconfigurer
- codec configurer for JSON encoding and decodingconnectionInitTimeout
- the time within which the CONNECTION_INIT
type
message must be received.public List<String> getSubProtocols()
getSubProtocols
in interface WebSocketHandler
public reactor.core.publisher.Mono<Void> handle(WebSocketSession session)
handle
in interface WebSocketHandler