modifié: test.html

This commit is contained in:
sidya82 2014-02-28 06:26:14 +01:00
parent 460b920319
commit 1b8c682682
1 changed files with 5 additions and 3 deletions

View File

@ -14,12 +14,14 @@
ws.onopen = function () {
console.log("websocket engage");
};
ws.onclose = function () {
console.log("connection closed");
};
function refresh() {
ws.send("next")= function(evt){;};
ws.send("next");
}
$(document).ready(refresh())
setInterval('refresh()', 2000);
setInterval(refresh(), 2000);
</script>
</head>
<body>