title: Apollo Server 3 with graphql-ws middleware subscriptions
body: <p>I am newbie to graphql and trying to create a middleware with apollo graphql server 3 and graphql-ws. The query and mutation are working fine but there a lot of issues with subscription. The official documentation of graphql state that it is better to work with <code>graphql-ws</code> instead of <code>subscriptions-transport-ws</code>.</p>
  <p>Subscription is working fine with nodejs but when tried to a Java project especifically with webflux doesn't. For test the API i am using Altair and the websocket seem like is connected but from server there are some logs that are contradictory.</p>
  <p><strong>Middleware Nodejs</strong> :
  <a href="https://github.com/kamboj652/graphql-middleware" rel="nofollow noreferrer">https://github.com/kamboj652/graphql-middleware</a></p>
  <p><strong>Nodejs Server</strong> :
  <a href="https://github.com/kamboj652/nodejs-graphql-server" rel="nofollow noreferrer">https://github.com/kamboj652/nodejs-graphql-server</a></p>
  <p><strong>Spring Boot Server</strong> :
  <a href="https://github.com/spring-projects/spring-graphql/tree/main/samples" rel="nofollow noreferrer">https://github.com/spring-projects/spring-graphql/tree/main/samples</a> --&gt; webflux-websocket</p>
  <p><strong>Edit</strong></p>
  <p>The idea behind the question is this. I think a picture speaks more than 1000 words.
  <a href="https://i.stack.imgur.com/l1m9G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l1m9G.png" alt="enter image description here" /></a></p>