{
            console.error("Failed to parse data");
          }
        });

        socket.addEventListener("close", (event) => {
          window.outputEl.innerHTML = `<p>Socket connection closed. Test is complete.<p></br></br>`;
          window.buttonEl.removeAttribute("hidden");
        });
      }

      window.addEventListener("load", function () {
        window.buttonEl = document.getElementById("listen");
        window.outputEl = document.getElementById("output");
        window.buttonEl.addEven