 {
            colors = new Float32Array(event.data);
            drawRects();
         };

         ws.onopen = function() {
            console.log('Connected');
         };

      }

   </script>
</body>
</html>