Error during WebSocket handshake: Unexpected response code: 302
问题 While connecting to REACT based WebSocket client to Java Jetty based Web Socket server, I am getting the error below - WebSocket connection to 'ws://localhost:2319/ws' failed: Error during WebSocket handshake: Unexpected response code: 302 This error doesn't exist while connecting through Chrome's Smart Web Socket client. I am trying to develop Web Socket Client based on REACT. Client code is - var connection = new WebSocket('ws://localhost:2319/ws'); connection.onopen = function () { //