websocket connection failed error during websocket handshake unexpected response code 400 code example
Example: error during websocket handshake: unexpected response code: 502
I got this error when I forgot to start my server. So make sure the server is running :)