there is an error:WebSocket connection to 'ws://dev.ectrend.com/' failed: Error during WebSocket handshake: Unexpected response code: 200
tips:when i change the connection port to 81,var ws = new WebSocket("ws://dev.ectrend.com:81"); everything is right
Looks like you are running the web socket server on port 81 instead of 80? I believe the server shouldn't return 200 for web socket handshake if it supports web socket.
My code as follows: `var ws = new WebSocket("ws://dev.ectrend.com:80"); ws.onopen = function() {
there is an error:WebSocket connection to 'ws://dev.ectrend.com/' failed: Error during WebSocket handshake: Unexpected response code: 200 tips:when i change the connection port to 81,var ws = new WebSocket("ws://dev.ectrend.com:81"); everything is right