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.

16 lines
374 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>WebSocket demo</title>
</head>
<body>
<script>
var ws = new WebSocket("ws://127.0.0.1:5678/")
ws.onmessage = function (event) {
document.body.innerHTML = event.data;
};
document.body.appendChild(messages);
</script>
</body>
</html>