I did a simple web socket communication with spring 4,STOMP and sock.js, following this https://github.com/rstoyanchev/spring-websocket-portfolio and this
http://assets.spri
This an be done with a connection handshake interceptor (HttpSessionHandshakeInterceptor), quoting the documentation:
The easiest way to customize the initial HTTP WebSocket handshake
request is through a HandshakeInterceptor, which exposes "before" and
"after" the handshake methods.