Class GraphQLWsMessageHandler
java.lang.Object
io.micronaut.configuration.graphql.ws.GraphQLWsMessageHandler
Handles the messages send over the websocket.
- Since:
- 1.3
- Author:
- Gerard Klijs
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLWsMessageHandler
(GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.configuration.graphql.ws.GraphQLWsState state, GraphQLInvocation graphQLInvocation, GraphQLExecutionResultHandler graphQLExecutionResultHandler, GraphQLWsSender responseSender) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<GraphQLWsResponse>
handleMessage
(GraphQLWsRequest request, io.micronaut.websocket.WebSocketSession session) Handles the request possibly invocating graphql.
-
Constructor Details
-
GraphQLWsMessageHandler
public GraphQLWsMessageHandler(GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.configuration.graphql.ws.GraphQLWsState state, GraphQLInvocation graphQLInvocation, GraphQLExecutionResultHandler graphQLExecutionResultHandler, GraphQLWsSender responseSender) Default constructor.- Parameters:
graphQLWsConfiguration
- theGraphQLWsConfiguration
instancestate
- theGraphQLWsState
instancegraphQLInvocation
- theGraphQLInvocation
instancegraphQLExecutionResultHandler
- theGraphQLExecutionResultHandler
instanceresponseSender
- theGraphQLWsSender
instance
-
-
Method Details
-
handleMessage
public org.reactivestreams.Publisher<GraphQLWsResponse> handleMessage(GraphQLWsRequest request, io.micronaut.websocket.WebSocketSession session) Handles the request possibly invocating graphql.- Parameters:
request
- Message from clientsession
- WebSocketSession- Returns:
- Publisher
-