diff --git a/src/main/java/com/ntlab/irisserver/WebSocketConfig.java b/src/main/java/com/ntlab/irisserver/WebSocketConfig.java index f6e7bcf..9f7f418 100644 --- a/src/main/java/com/ntlab/irisserver/WebSocketConfig.java +++ b/src/main/java/com/ntlab/irisserver/WebSocketConfig.java @@ -1,6 +1,7 @@ package com.ntlab.irisserver; //import com.ntlab.irisserver.websockets.HelloWorldWebSocket; +import com.ntlab.irisserver.websockets.HelloWebSocket; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.socket.WebSocketHandler; @@ -16,10 +17,10 @@ //registry.addHandler(helloWorldWebSocket2(), "/hello-websocket2"); } -// @Bean -// public HelloWorldWebSocket helloWorldWebSocket() { -// return new HelloWorldWebSocket(); -// } + @Bean + public HelloWebSocket helloWebSocket() { + return new HelloWebSocket(); + } @Bean public ServerEndpointExporter serverEndpointExporter() {