Javascript 错误名称未在websocket上解析

Javascript 错误名称未在websocket上解析,javascript,websocket,java-websocket,Javascript,Websocket,Java Websocket,我正在尝试修改一个游戏,但是websocket说这个名字没有解析,尽管看起来应该可以用。谁能告诉我这个问题吗 function doit() { document.body.innerHTML += '<div id="messageDisplay"></div>'; messageDisplay = document.getElementById("messageDisplay"); y = E.getElementById("canvas"); a = y.getC

我正在尝试修改一个游戏,但是websocket说这个名字没有解析,尽管看起来应该可以用。谁能告诉我这个问题吗

function doit() {
document.body.innerHTML += '<div id="messageDisplay"></div>';
messageDisplay = document.getElementById("messageDisplay");

y = E.getElementById("canvas");
a = y.getContext("2d");
try {
    A.top.location.origin != A.location.origin && ba()
} catch (f) {
    ba()
} 
y.onmousemove = ua;
y.onmousedown = va;
y.onmouseup = xa;
M = E.getElementById("noCursorLock");
H = E.getElementById("noDrawings");
null != localStorage && (M.checked = "1" == A.localStorage.getItem("noCursorLock") ? !0 : !1, H.checked = "1" == A.localStorage.getItem("noDrawings") ? !0 : !1);
A.onbeforeunload = ya;
y.requestPointerLock = y.requestPointerLock || y.mozRequestPointerLock || y.webkitRequestPointerLock;
y.style.cursor = "none";
La();
//________________
//the main issue V
    D || null == u && (u = new WebSocket("ws://s1.cursors.io:443/"), u.binaryType = "arraybuffer", u.onopen = Aa, u.onmessage = Ga, u.onclose =
        Ba, u.onerror = Ca);
//______________
setInterval(Q, 50);
setInterval(Ja, 40);
A.requestAnimationFrame(ma)

document.onkeypress = handleKeyboard;
}
顺便说一下,这不是我做的,我只是想把它修好

编辑:该错误是连接建立中的错误


编辑2:所以上面的问题已经解决了,但是出现了一个新的问题。我将s1.cursors.io替换为104.27.159.114,但它说VM20349:1898 WebSocket连接到“ws://104.27.159.114:443/”失败:WebSocket握手时出错:意外响应代码:400现在怎么了?

它说名称没有解析,所以它没有解析

%  host s1.cursors.io
Host s1.cursors.io not found: 3(NXDOMAIN)

DNS不保存您尝试连接到的主机名的记录。

那么我应该怎么做?连接到现有的主机名。因此,要么在DNS中设置名称,要么将名称更改为其他名称。那么ws://IP:443/?仍然是新的脚本