modifié: test.html
This commit is contained in:
parent
460b920319
commit
1b8c682682
@ -14,12 +14,14 @@
|
|||||||
ws.onopen = function () {
|
ws.onopen = function () {
|
||||||
console.log("websocket engage");
|
console.log("websocket engage");
|
||||||
};
|
};
|
||||||
|
ws.onclose = function () {
|
||||||
|
console.log("connection closed");
|
||||||
|
};
|
||||||
function refresh() {
|
function refresh() {
|
||||||
ws.send("next")= function(evt){;};
|
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