update example

This commit is contained in:
ok-home
2023-09-27 20:32:21 +07:00
parent fd69d43d38
commit d6a42fc166
5 changed files with 323 additions and 6 deletions

View File

@@ -247,11 +247,11 @@
console.log("connect ws");
};
socket.onclose = function (event) {
document.location.reload();
//document.location.reload();
console.log("close ws");
};
socket.onerror = function () {
document.location.reload();
//document.location.reload();
console.log("error ws");
};
socket.onmessage = function (event) {