modifié: test.html

This commit is contained in:
sidya82 2014-02-28 06:30:30 +01:00
parent a47ab3468d
commit b5c1a76298

View File

@ -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>