diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 20:50:03 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-22 20:50:03 +0200 |
commit | 2629b3db22f27b968a19f0699969de223b9cc792 (patch) | |
tree | 78782dd05aa856a2417e41b242a9666468e12efa /sw-server/src/main | |
parent | Add debug statements (diff) | |
download | seven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.tar.gz seven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.tar.bz2 seven-wonders-2629b3db22f27b968a19f0699969de223b9cc792.zip |
Use shared constant for ws endpoint
Diffstat (limited to 'sw-server/src/main')
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt index 8bff83da..f68cddef 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/config/WebSocketConfig.kt @@ -1,5 +1,6 @@ package org.luxons.sevenwonders.server.config +import org.luxons.sevenwonders.model.api.SEVEN_WONDERS_WS_ENDPOINT import org.springframework.beans.factory.annotation.Autowired import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration @@ -10,8 +11,6 @@ import org.springframework.web.socket.config.annotation.StompEndpointRegistry import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer import org.springframework.web.socket.server.support.DefaultHandshakeHandler -const val SEVEN_WONDERS_WS_ENDPOINT = "/seven-wonders-websocket" - @Configuration @EnableWebSocketMessageBroker class WebSocketConfig @Autowired constructor(private val topicSubscriptionInterceptor: TopicSubscriptionInterceptor) : |