File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/main/java/com/oronaminc/join/websocket Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 99import org .springframework .web .socket .config .annotation .WebSocketMessageBrokerConfigurer ;
1010import org .springframework .web .socket .config .annotation .WebSocketTransportRegistration ;
1111import org .springframework .web .socket .handler .WebSocketHandlerDecoratorFactory ;
12- import org .springframework .web .socket .server .support .HttpSessionHandshakeInterceptor ;
1312
1413import com .oronaminc .join .websocket .handshake .CustomHandshakeHandler ;
1514import com .oronaminc .join .websocket .session .CustomWebSocketHandlerDecorator ;
@@ -48,15 +47,16 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
4847 registry .addEndpoint ("/ws" )
4948 .setAllowedOriginPatterns ("*" )
5049 // websocket 연결 전 쿠키 체크
51- .addInterceptors (new HttpSessionHandshakeInterceptor ())
50+ // .addInterceptors(new HttpSessionHandshakeInterceptor())
5251 // websocket 연결 후 principal 생성
53- .setHandshakeHandler (handshakeHandler )
52+ // .setHandshakeHandler(handshakeHandler)
5453 .withSockJS ();
5554
5655 registry .addEndpoint ("/ws" )
5756 .setAllowedOriginPatterns ("*" )
58- .addInterceptors (new HttpSessionHandshakeInterceptor ())
59- .setHandshakeHandler (handshakeHandler );
57+ // .addInterceptors(new HttpSessionHandshakeInterceptor())
58+ // .setHandshakeHandler(handshakeHandler)
59+ ;
6060
6161 registry .setErrorHandler (stompErrorHandler );
6262 }
Original file line number Diff line number Diff line change 22
33import static com .oronaminc .join .global .exception .ErrorCode .*;
44
5- import com .oronaminc .join .global .exception .ErrorCode ;
65import java .security .Principal ;
76import java .util .Set ;
87
You can’t perform that action at this time.
0 commit comments