) );

                eventCount++;
                event_count.innerHTML = "Total events received: " + eventCount;

                window.myBar.update();
            };

            ws.onclose = function() { 
                var status = document.getElementById("status");
                status.innerHTML = "Connection is closed.";
            };
         </script>
    <style>
    canvas {
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
    }
    </style>
<