File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/oronaminc/join/websocket/config Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1010import org .springframework .web .socket .config .annotation .WebSocketMessageBrokerConfigurer ;
1111import org .springframework .web .socket .config .annotation .WebSocketTransportRegistration ;
1212import org .springframework .web .socket .handler .WebSocketHandlerDecoratorFactory ;
13+ import org .springframework .web .socket .server .support .HttpSessionHandshakeInterceptor ;
1314
1415import com .oronaminc .join .websocket .handshake .CustomHandshakeHandler ;
1516import com .oronaminc .join .websocket .session .CustomWebSocketHandlerDecorator ;
@@ -49,9 +50,9 @@ public void registerStompEndpoints(StompEndpointRegistry registry) {
4950 registry .addEndpoint ("/ws" )
5051 .setAllowedOriginPatterns ("*" )
5152 // websocket 연결 전 쿠키 체크
52- // .addInterceptors(new HttpSessionHandshakeInterceptor())
53+ .addInterceptors (new HttpSessionHandshakeInterceptor ())
5354 // websocket 연결 후 principal 생성
54- // .setHandshakeHandler(handshakeHandler)
55+ .setHandshakeHandler (handshakeHandler )
5556 .withSockJS ();
5657
5758 registry .addEndpoint ("/ws" )
You can’t perform that action at this time.
0 commit comments