Skip to content

Commit 8b2b0fe

Browse files
committed
인터셉터, 핸들러 재추가
2 parents b209c4c + ab1ebb5 commit 8b2b0fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/oronaminc/join/websocket/config/WebSocketConfig.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
1111
import org.springframework.web.socket.config.annotation.WebSocketTransportRegistration;
1212
import org.springframework.web.socket.handler.WebSocketHandlerDecoratorFactory;
13-
import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
1413

1514
import com.oronaminc.join.websocket.handshake.CustomHandshakeHandler;
1615
import com.oronaminc.join.websocket.session.CustomWebSocketHandlerDecorator;
@@ -50,9 +49,9 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
5049
registry.addEndpoint("/ws")
5150
.setAllowedOriginPatterns("*")
5251
// websocket 연결 전 쿠키 체크
53-
.addInterceptors(new HttpSessionHandshakeInterceptor())
52+
// .addInterceptors(new HttpSessionHandshakeInterceptor())
5453
// websocket 연결 후 principal 생성
55-
.setHandshakeHandler(handshakeHandler)
54+
// .setHandshakeHandler(handshakeHandler)
5655
.withSockJS();
5756

5857
registry.addEndpoint("/ws")

0 commit comments

Comments
 (0)