Accessing HTTP Session in WebSocket endpoint
Accessing HTTP Session in WebSocket endpoint
It’s possible to obtain a reference to the HttpSession within a WebSocket application using a custom implementation of ServerEndpointConfig.Configurator
Here is an example application on Github
Steps…
Override the modifyHandshakeRequest method
call the getHttpSession method on the HandshakeRequest object which is passed into the method by the WebSocket runtime
store it– one possible option is to…
View On WordPress















