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 () { 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>