
  </div>
  <input type="text" id="port" placeholder="websocket port">
  <input type="text" id="flowise" placeholder="paste your agent id here">
  <button id="connector">CONNECT TO SERVER</button>  
  <input type="text" id="inputbox" placeholder="Type your message here...">
  <button id="sendbtn">Send</button>
  <div id="chatbox"></div>
  <br><br>  
  <button id="clearbtn">New Chat (or Clear)</button>
  <button id="testbtn">Test Server</button>
  <p id="result"></p>
  <script>
    const mled = 