diff options
Diffstat (limited to 'juick-ws')
-rw-r--r-- | juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java index e87b96a5..78b946ed 100644 --- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java +++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java @@ -13,6 +13,7 @@ import org.springframework.web.socket.WebSocketSession; import org.springframework.web.socket.handler.TextWebSocketHandler; import javax.inject.Inject; +import javax.inject.Singleton; import java.io.IOException; import java.net.URI; import java.util.ArrayList; @@ -25,6 +26,7 @@ import java.util.logging.Logger; * Created by vitalyster on 28.06.2016. */ @Component +@Singleton public class WebsocketComponent extends TextWebSocketHandler { @Inject |