document.createElement('div');
        event.innerHTML = `WebSocket error: Failed to connect to ${subscribeURL}`;
        events.appendChild(event);
    };
    websocket.onmessage = (e) => {
        let event = document.createElement('div');
        event.innerHTML = e.data;
        events.appendChild(event);
    };
</script>

</body>
</html>
