|
@@ -1,16 +1,14 @@
|
|
|
-
|
|
|
package hello;
|
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.messaging.simp.config.ChannelRegistration;
|
|
|
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
|
|
|
+import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
|
|
|
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
|
|
|
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
|
|
|
-import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
|
|
|
|
|
|
@Configuration
|
|
|
@EnableWebSocketMessageBroker
|
|
|
-public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
|
|
|
+public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
|
|
|
|
|
|
@Override
|
|
|
public void configureMessageBroker(MessageBrokerRegistry config) {
|
|
@@ -23,12 +21,4 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
|
|
|
registry.addEndpoint("/hello").withSockJS();
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public void configureClientInboundChannel(ChannelRegistration channelRegistration) {
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void configureClientOutboundChannel(ChannelRegistration channelRegistration) {
|
|
|
- }
|
|
|
-
|
|
|
}
|