Class WildFlyGraphQLServerWebSocket
java.lang.Object
io.smallrye.graphql.entry.http.GraphQLServerWebSocket
org.wildfly.extension.microprofile.graphql.WildFlyGraphQLServerWebSocket
public class WildFlyGraphQLServerWebSocket
extends io.smallrye.graphql.entry.http.GraphQLServerWebSocket
WebSocket endpoint that exposes GraphQL over websockets.
Just wrap the original GraphQLServerWebSocket class from SmallRye. The reason we're not using it directly is that
I don't know how to make the deployer see the annotations on that class - if we try to use it directly then
the undertow deployer will fail. So we extend that class, re-declare its annotations and delegate everything to it.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WildFlyGraphQLServerWebSocket
public WildFlyGraphQLServerWebSocket()
-
-
Method Details
-
onOpen
public void onOpen(jakarta.websocket.Session session) - Overrides:
onOpenin classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
onClose
public void onClose(jakarta.websocket.Session session) - Overrides:
onClosein classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
onError
- Overrides:
onErrorin classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-
handleMessage
- Overrides:
handleMessagein classio.smallrye.graphql.entry.http.GraphQLServerWebSocket
-