Description
Our main "GraphQL servlet" extends GraphQLHttpServlet and I annotate it with @WebServlet() for it to be loaded by our application server. As we are in a Wildfly environment we don't want to use Spring Boot as they don't really make sense to be used together (we only use it for the GraphiQL interface during development).
Until now this has worked fine. However, I want to use GraphQL Subscriptions, and I can't for the life of me figure out how our extension of GraphQLHttpServlet can interact with the GraphQLWebsocketServlet class.
How do I go about setting up the GraphQLWebsocketServlet from a standard GraphQLHttpServlet instance? I see the class has constructors, but it's clear it's not really intended to be extended as the constructor wants too much in the parameters, so adding another @WebServlet() and @endpoint() doesn't seem to be the way to do it. They also use the same configured factories, so it seems they should be shared.
I looked through the source code on how Spring auto wires it based on the .yml config files, but I still can't see how they relate to each other or interact with each other.
Thanks in advance!