Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
381 B
0
Indexable
Never
<!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>