sult");
    const chatbox = document.getElementById("chatbox");
    const connector = document.getElementById("connector");
    const inputbox = document.getElementById("inputbox");
    const sendbtn = document.getElementById("sendbtn");
    const clearbtn = document.getElementById("clearbtn");
  
    let ws; // WebSocket object
  
    // Add a click event listener to the 'test server' button
    testbtn.addEventListener("click", async () => {
      try {      
        const response = await fetch("http://1