package nl.homeserver.config;

import org.springframework.context.annotation.Configuration;
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;

@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {

    @Override
    public void configureMessageBroker(MessageBrokerRegistry config) {
        config.enableSimpleBroker("/topic");
        config.setApplicationDestinationPrefixes("/app");
    }

    @Override
    public void registerStompEndpoints(StompEndpointRegistry registry) {
        registry.addEndpoint("/ws").setAllowedOrigins("*").withSockJS();
    }
}
@@ -161,106 +161,8 @@
 ry;%0A
-import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;%0A
 impo
@@ -321,16 +321,106 @@
 egistry;
+%0Aimport org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
 %0A%0A@Confi
@@ -491,24 +491,19 @@
 fig 
-extend
+implement
 s 
-Abstract
 WebS

Fix usage of deprecated class