Class GraphQLWsMessageHandler
- java.lang.Object
-
- io.micronaut.configuration.graphql.ws.GraphQLWsMessageHandler
-
@Singleton public class GraphQLWsMessageHandler extends java.lang.ObjectHandles the messages send over the websocket.- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description GraphQLWsMessageHandler(GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.configuration.graphql.ws.GraphQLWsState state, GraphQLInvocation graphQLInvocation, GraphQLExecutionResultHandler graphQLExecutionResultHandler, GraphQLWsSender responseSender)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<GraphQLWsResponse>handleMessage(GraphQLWsRequest request, io.micronaut.websocket.WebSocketSession session)Handles the request possibly invocating graphql.
-
-
-
Constructor Detail
-
GraphQLWsMessageHandler
public GraphQLWsMessageHandler(GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.configuration.graphql.ws.GraphQLWsState state, GraphQLInvocation graphQLInvocation, GraphQLExecutionResultHandler graphQLExecutionResultHandler, GraphQLWsSender responseSender)
Default constructor.- Parameters:
graphQLWsConfiguration- theGraphQLWsConfigurationinstancestate- theGraphQLWsStateinstancegraphQLInvocation- theGraphQLInvocationinstancegraphQLExecutionResultHandler- theGraphQLExecutionResultHandlerinstanceresponseSender- theGraphQLWsSenderinstance
-
-
Method Detail
-
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
-
-