I have a Web Socket with Spring and SockJs, I have to expose the Socket also for a "WebSocket" standard.
I have my handler:
@Override public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { registry.addHandler(mySocketHandler(), "/mySocket").setAllowedOrigins("*"); } When I create the websocket via browser, with this:
var ws = new WebSocket('wss://localhost:8443/myApp/mySocket') I have the following error:
WebSocket connection to 'wss://localhost:8443/myApp/mySocket' failed: Error during WebSocket handshake: Unexpected response code: 405 Any suggestions?
Thanks.