Class GraphQLWebSocketServer
-
- All Implemented Interfaces:
public abstract class GraphQLWebSocketServer<Session extends Object, Message extends Object>
GraphQL Web Socket server implementation for handling subscriptions using graphql-transport-ws protocol
-
-
Constructor Summary
Constructors Constructor Description GraphQLWebSocketServer(GraphQLSubscriptionRequestParser<Session> requestParser, GraphQLSubscriptionContextFactory<Session> contextFactory, GraphQLSubscriptionHooks<Session> subscriptionHooks, GraphQLRequestHandler requestHandler, Long initTimeoutMillis, ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description final Flow<Message>
handleSubscription(Session session)
abstract Unit
closeSession(Session session, GraphQLSubscriptionStatus reason)
abstract Message
sendSubscriptionMessage(Session session, String message)
-
-
Constructor Detail
-
GraphQLWebSocketServer
GraphQLWebSocketServer(GraphQLSubscriptionRequestParser<Session> requestParser, GraphQLSubscriptionContextFactory<Session> contextFactory, GraphQLSubscriptionHooks<Session> subscriptionHooks, GraphQLRequestHandler requestHandler, Long initTimeoutMillis, ObjectMapper objectMapper)
-
-
Method Detail
-
handleSubscription
final Flow<Message> handleSubscription(Session session)
-
closeSession
abstract Unit closeSession(Session session, GraphQLSubscriptionStatus reason)
-
sendSubscriptionMessage
abstract Message sendSubscriptionMessage(Session session, String message)
-
-
-
-