[Sample] Could sample webmvc-websocket be provided?
GoncaloPT opened this issue · 3 comments
Hi,
Thanks for the great work.
In the docs we see the reference for a webmvc + websocket setup, but it is very unclear how would such be setup.
The content if found ( including josh's videos ) always use webflux(Flux,Mono).
Therefore, if this setup is even possible, It would be very helpful to have a simple example.
Thanks!
After some digging, I found that it isn't that different - in terms of setup - from webflux-websocket.
I will later create a PR with the requested example in order to help people that had the same doubt as me.
Thanks for the update @GoncaloPT .
Don't bother with a PR, we're in the process of deciding what to do with the samples folder in this repository. Right now this is creating a dependency cycle between Spring Boot and Spring for GraphQL, so we might take it out completely and turn it into one or several guides on spring.io.
Putting a link here to a sample that exists now https://github.com/spring-projects/spring-graphql-examples/tree/main/websocket-authentication.