Javascript Sockets (failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET)

This is probably super late but I just ran into a similar problem while using Django channels. I fixed it by adding a slash (/) at the end of the URL.

ws = new WebSocket("ws://192.168.6.222:11000/echo/");

How does the server side of the connection look like? Maybe you are using a faulty WebSocket Lib which does not provide a valid handshake.

Because when testing the client against ws://echo.websocket.org everything seems to work perfectly fine. This strongly suggests that the websocket client is not source of the problem.