@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig
extends org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
| Constructor and Description |
|---|
WebSocketConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry) |
void |
registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
Register Stomp endpoints: the url to open the WebSocket connection.
|
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
configureMessageBroker in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurerconfigureMessageBroker in class org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurerpublic void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
Copyright © 2020 Open Foris. All rights reserved.