This commit is contained in:
2021-03-20 02:36:48 +08:00
parent 06422d5073
commit d936982deb
+3 -3
View File
@@ -29,17 +29,17 @@
format.insertBefore(div, count[0]);
}
function close() {
function close(even) {
setTimeout(function () {
connect();
sock.onmessage = message;
sock.onclose = close;
}, 3000);
console.log('onClose')
console.log(even, 'onClose')
}
function connect() {
sock = new WebSocket('ws://47.92.194.207:9530');
sock = new WebSocket('ws://47.92.194.207:9530?token=de5cfdf897-e2f-65de-b5686aca2-5575fe&access_token='+encodeURIComponent('ZgHcxCzVuV7kKQsf/j07N5J7BnC1VE5sS32/07utoibiLHLBXLa9htX3LMsik2DY2w0n+MUibQayG0diedcD8g==')+'&iv=iv340f0be2Fx0VvP');
sock.onopen = function () {
if (tick) {
clearInterval(tick)