我正在尝试修改游戏,但网络套接字显示名称无法解析,即使看起来应该可以使用。有人可以告诉我问题吗?
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 connection to 'ws://104.27.159.114:443/' failed: Error during WebSocket handshake: Unexpected response code: 400
现在出了什么问题?
答案 0 :(得分:0)
它说名字没有解析,所以不是。
% host s1.cursors.io
Host s1.cursors.io not found: 3(NXDOMAIN)
DNS不会保存您尝试连接的主机名的记录。