modifié: test.html
This commit is contained in:
parent
a47ab3468d
commit
b5c1a76298
@ -17,12 +17,12 @@
|
|||||||
ws.onclose = function () {
|
ws.onclose = function () {
|
||||||
console.log("connection closed");
|
console.log("connection closed");
|
||||||
};
|
};
|
||||||
function refresh() {
|
/* function refresh() {*/
|
||||||
console.log("send data");
|
console.log("send data");
|
||||||
ws.send("next");
|
ws.send("next");
|
||||||
}
|
//}
|
||||||
/*$(document).ready(refresh())*/
|
/*$(document).ready(refresh())
|
||||||
setInterval(refresh(), 2000);
|
setInterval(refresh(), 2000);*/
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Reference in New Issue
Block a user