Closed shubhamjaincav closed 4 years ago
This error means that the data the client received it not a valid HTTP response. You should debug this by recording the sequence of strings you're sending to the driver's parse
method and then inspecting this log when the error occurs to see what the server has sent you.
Error : Error during WebSocket handshake: Invalid HTTP response Error code : 1002
[:close, 1002, "Error during WebSocket handshake: Invalid HTTP response"]
url : 'wss://localhost:443/secure'
Using SSL verification method : ssl_context = OpenSSL::SSL::SSLContext.new(:TLSv1_2_client) ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
Please let me know, why is this error coming when making WSS connection?