@Singleton
public class GraphQLWsMessageHandler
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLWsMessageHandler(GraphQLWsConfiguration graphQLWsConfiguration,
io.micronaut.configuration.graphql.ws.GraphQLWsState state,
GraphQLInvocation graphQLInvocation,
GraphQLExecutionResultHandler graphQLExecutionResultHandler,
GraphQLWsSender responseSender)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<GraphQLWsResponse> |
handleMessage(GraphQLWsRequest request,
io.micronaut.websocket.WebSocketSession session)
Handles the request possibly invocating graphql.
|
public GraphQLWsMessageHandler(GraphQLWsConfiguration graphQLWsConfiguration, io.micronaut.configuration.graphql.ws.GraphQLWsState state, GraphQLInvocation graphQLInvocation, GraphQLExecutionResultHandler graphQLExecutionResultHandler, GraphQLWsSender responseSender)
graphQLWsConfiguration - the GraphQLWsConfiguration instancestate - the GraphQLWsState instancegraphQLInvocation - the GraphQLInvocation instancegraphQLExecutionResultHandler - the GraphQLExecutionResultHandler instanceresponseSender - the GraphQLWsSender instancepublic org.reactivestreams.Publisher<GraphQLWsResponse> handleMessage(GraphQLWsRequest request, io.micronaut.websocket.WebSocketSession session)
request - Message from clientsession - WebSocketSession