File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/com/oronaminc/join/websocket/config Expand file tree Collapse file tree 1 file changed +5
-4
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 ;
1213
1314import com .oronaminc .join .websocket .handshake .CustomHandshakeHandler ;
1415import com .oronaminc .join .websocket .session .CustomWebSocketHandlerDecorator ;
@@ -47,15 +48,15 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
4748 registry .addEndpoint ("/ws" )
4849 .setAllowedOriginPatterns ("*" )
4950 // websocket 연결 전 쿠키 체크
50- // .addInterceptors(new HttpSessionHandshakeInterceptor())
51+ .addInterceptors (new HttpSessionHandshakeInterceptor ())
5152 // websocket 연결 후 principal 생성
52- // .setHandshakeHandler(handshakeHandler)
53+ .setHandshakeHandler (handshakeHandler )
5354 .withSockJS ();
5455
5556 registry .addEndpoint ("/ws" )
5657 .setAllowedOriginPatterns ("*" )
57- // .addInterceptors(new HttpSessionHandshakeInterceptor())
58- // .setHandshakeHandler(handshakeHandler)
58+ .addInterceptors (new HttpSessionHandshakeInterceptor ())
59+ .setHandshakeHandler (handshakeHandler )
5960 ;
6061
6162 registry .setErrorHandler (stompErrorHandler );
You can’t perform that action at this time.
0 commit comments