package com.kryptnostic.helper.services.v1; import java.util.Map; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.web.socket.WebSocketHandler; import org.springframework.http.server.ServerHttpRequest; import org.springframework.http.server.ServerHttpResponse; import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor; @EnableAsync public class HandshakeInterceptor extends HttpSessionHandshakeInterceptor { @Override public boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) throws Exception{ return super.beforeHandshake(request, response, wsHandler, attributes); } @Override public void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Exception e) { super.afterHandshake(request, response, wsHandler, e); } }