Spring WebSocket provides good support for WebSocket applications, and it’s easy to use when you understand what’s going on behind the scenes. This chapter will help you to start understanding some of the Spring WebSocket configuration possibilities.
10.1 Raw WebSocket Configuration
Although you’re not going to use a raw WebSocket configuration in the chat app, here is what its configuration on Spring would look like:
@Configuration
@EnableWebSocket
public class RawWebSocketConfiguration implements WebSocketConfigurer {
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry ...