August 2017
Intermediate to advanced
142 pages
3h
English
© Jorge Acetozi 2017
Jorge Acetozi, Pro Java Clustering and Scalability, https://doi.org/10.1007/978-1-4842-2985-9_10
Jorge Acetozi1
(1)São Paulo / SP, Brazil
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.
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@EnableWebSocketpublic class RawWebSocketConfiguration implements WebSocketConfigurer { @Override public void registerWebSocketHandlers(WebSocketHandlerRegistry ...Read now
Unlock full access