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