Class WebSocketConfig
java.lang.Object
vn.edu.uit.csbu.software_design.software_design_backend.config.WebSocketConfig
- All Implemented Interfaces:
org.springframework.web.socket.config.annotation.WebSocketConfigurer
@Configuration
@EnableWebSocket
public class WebSocketConfig
extends Object
implements org.springframework.web.socket.config.annotation.WebSocketConfigurer
The WebSocketConfig class configures WebSocket support in a Java application with a ChatHandler for
handling chat-related interactions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterWebSocketHandlers(org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry)
-
Constructor Details
-
WebSocketConfig
public WebSocketConfig()Instantiates a new Web socket config.
-
-
Method Details
-
registerWebSocketHandlers
public void registerWebSocketHandlers(@NonNull org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry registry) - Specified by:
registerWebSocketHandlersin interfaceorg.springframework.web.socket.config.annotation.WebSocketConfigurer
-