WebSocket connection to 'ws://127.0.0.1:8020/' failed: Error during WebSocket handshake: Unexpected response code: 200
握手信息200是错误???不是很懂
以下是出事故的代码:
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);
};