nd the new log entries to the chatbox
        logEntries.forEach(entry => {
          if (entry.sender !== "server") {
            chatbox.innerHTML += `<p><strong>${entry.sender}:</strong> ${entry.message}</p>`;
            chatbox.scrollTop = chatbox.scrollHeight;
          }
        })
      } catch (error) {
        console.error(error);
      }
    }
  
    // Add a click event listener to the 'connect to server' button
    connector.addEventListener("click", async () => {
      try {
        // Establ