Untitled

 avatar
unknown
plain_text
2 years ago
381 B
3
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript">
        var ws = new WebSocket("ws://localhost:8080/websocket")
        ws.onmessage = function (evt) {
            document.body.style.backgroundColor = evt.data;
        };
    </script>
</head>
<body style="background-color:#ffeeee">
</body>
</html>
Editor is loading...