From 06d2d8ffdba235208d0b5f88892661aaa53aa720 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 2 Oct 2020 14:41:56 +0100 Subject: [PATCH] Further removal of unused websocket components --- backend/pom.xml | 4 ---- .../observationdatabase/WebSocketConfig.kt | 20 ------------------- 2 files changed, 24 deletions(-) delete mode 100644 backend/src/main/kotlin/uk/co/neviyn/observationdatabase/WebSocketConfig.kt 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