diff --git a/backend/pom.xml b/backend/pom.xml index 72165cc..b3e40ab 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -60,10 +60,6 @@ org.springframework.boot spring-boot-starter-cache - - org.springframework.boot - spring-boot-starter-websocket - com.fasterxml.jackson.module jackson-module-kotlin diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/WebSocketConfig.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/WebSocketConfig.kt deleted file mode 100644 index 3562a7d..0000000 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/WebSocketConfig.kt +++ /dev/null @@ -1,20 +0,0 @@ -package uk.co.neviyn.observationdatabase - -import org.springframework.context.annotation.Configuration -import org.springframework.messaging.simp.config.MessageBrokerRegistry -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 -class WebSocketConfig : WebSocketMessageBrokerConfigurer { - - override fun configureMessageBroker(registry: MessageBrokerRegistry) { - registry.enableSimpleBroker("/ws") - } - - override fun registerStompEndpoints(registry: StompEndpointRegistry) { - registry.addEndpoint("/websocket").setAllowedOrigins("http://localhost:8080", "http://127.0.0.1:8080").withSockJS() - } -} \ No newline at end of file