Class 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 Detail

      • WildFlyGraphQLServerWebSocket

        public WildFlyGraphQLServerWebSocket()
    • Method Detail

      • onOpen

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

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

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

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