I have a spring-boot websocket connection which sits behind spring-security-kerberos to achieve SSO. This works as expected but if I restart the server I see clients fail to re-connect with the error Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value
.
I am using @stomp/stompjs 4.0.8 and setting stompClient.reconnect_delay = 5000
Is there any way to solve this? I am concerned that running this behind a load balancer would cause this error to occur all the time.
This is based on the messaging-stomp-websocket example + spring-security websocket-authentication