Just like its predecessors, Spring 5 supports a high-frequency but low-latency data exchange between a client and a server using a websocket protocol. This recipe will just provide a step-by-step procedure on how to implement raw and real-time WebSocket messaging without using any third-party brokers.
Building client-server communications with WebSocket
Getting ready
Create a new Maven project, ch12-websocket, that will implement the simple and non-reactive TextSocketWebHandler to entertain complaints from clients.
How to do it...
Let us create a simple messenger by performing...