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 Details

    • WildFlyGraphQLServerWebSocket

      public WildFlyGraphQLServerWebSocket()
  • Method Details

    • onOpen

      public void onOpen(jakarta.websocket.Session session)
      Overrides:
      onOpen in class io.smallrye.graphql.entry.http.GraphQLServerWebSocket
    • onClose

      public void onClose(jakarta.websocket.Session session)
      Overrides:
      onClose in class io.smallrye.graphql.entry.http.GraphQLServerWebSocket
    • onError

      public void onError(jakarta.websocket.Session session, Throwable throwable)
      Overrides:
      onError in class io.smallrye.graphql.entry.http.GraphQLServerWebSocket
    • handleMessage

      public void handleMessage(jakarta.websocket.Session session, String message)
      Overrides:
      handleMessage in class io.smallrye.graphql.entry.http.GraphQLServerWebSocket