Member-only story
Spring Boot WebSocket — Building Multichannel Chat In Java
In this text I will build Spring Boot WebSocket chat with multichannel support. A lot of Spring Web Flux and reactive programming included.
As you may have already guessed from the title the, topic for today will be Spring Boot WebSockets. Some time ago I provided an example of WebSocket chat based on Akka toolkit libraries. However, this chat will have somewhat more features, and a quite different design.
I will skip some parts so as not to duplicate too much content from the previous article. Here you can find a more in depth intro into WebSockets. Please note that all the code that’s used in this article is also available in the GitHub repository.
Spring Boot WebSocket — Tools Used
Let’s start the technical part of this text with a description of tools that will be further used to implement the whole application. As I cannot fully grasp how to build real WebSocket API with classic Spring — STOMP overlay. I decided to go for Spring WebFlux and make everything reactive.
- Spring Boot — no modern Java app based on Spring can exist without Spring Boot, all the autoconfiguration is priceless.








