You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<html>
|
|
<head>
|
|
<script>
|
|
var ws = new WebSocket("wss://localhost:80/");
|
|
ws.onopen = function() {
|
|
function schedule(i) {
|
|
setTimeout(function() {
|
|
ws.send('Hello from the client! (iteration ' + i + ')');
|
|
schedule(i + 1);
|
|
}, 1000);
|
|
};
|
|
schedule(1);
|
|
};
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|