Closed zkendall closed 6 years ago
It has been a black box for me as well. There is WebSocket handshake which happens at the time of opening WebSocket connection. The actual requests are opaque and I have not been able to find a way to access those.
The Exception that you are seeing is within libraries Browser maintains - definitely likely to vary across Browsers.
Dang. That's too bad. Current work around for me is to call auth to validate my token in my error handler. If that returns a 4xx, then I set reconnect_delay back to 0, otherwise I double it to back off.
Closing this issue, please reopen if needed.
Planning for next version of stompjs is on the way. Your participation will be really appreciated, please join at https://github.com/stomp-js/stompjs/issues/1
I'm tearing my hair out trying to not retry on 403 response code from initial handshake.
Do you know of any way to do this or can it be added to feature backlog?