public interface WampReactiveConfigurer extends WampConfigurer
Used together with EnableWamp
| Modifier and Type | Method and Description |
|---|---|
default void |
configureHandlerMapping(org.springframework.web.reactive.handler.SimpleUrlHandlerMapping mapping)
Configures the WebSocket handler registration
@Override
void configureHandlerMapping(SimpleUrlHandlerMapping mapping) {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin("http://localhost:8100");
mapping.setCorsConfigurations(
Collections.singletonMap("/wamp", corsConfiguration));
} |
default org.springframework.web.reactive.socket.WebSocketHandler |
decorateWebSocketHandler(org.springframework.web.reactive.socket.WebSocketHandler webSocketHandler)
Decorates a WebSocket handler
|
addArgumentResolvers, configureClientInboundChannel, configureFeaturesdefault org.springframework.web.reactive.socket.WebSocketHandler decorateWebSocketHandler(org.springframework.web.reactive.socket.WebSocketHandler webSocketHandler)
default void configureHandlerMapping(org.springframework.web.reactive.handler.SimpleUrlHandlerMapping mapping)
@Override
void configureHandlerMapping(SimpleUrlHandlerMapping mapping) {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.addAllowedOrigin("http://localhost:8100");
mapping.setCorsConfigurations(
Collections.singletonMap("/wamp", corsConfiguration));
}
Copyright © 2017–2018. All rights reserved.