WebSocket connection to 'ws://127.0.0.1:8020/' failed: Error during WebSocket handshake: Unexpected response code: 200握手信息200是錯(cuò)誤???不是很懂以下是出事故的代碼:connect : function(url) {// Websocket initialization
if (this.ws != undefined) {
this.ws.close();
delete this.ws;
}
this.ws = new WebSocket(url); //<==there is a error O~O
this.ws.binaryType = "arraybuffer";
this.ws.onopen = () => {
log("Connected to " + url);
};
javascript 的socket 報(bào)出的“200”錯(cuò)誤,怎么解決
手掌心
2019-04-10 18:15:46