   const message = JSON.stringify({ text: 'userB: ' + inputText });
      askQuestion(message);
      ws.send(message);
     }
  });

  // Listen for messages from the server
  ws.onmessage = (event) => {
    const receivedMessage = event.data;
    displayMessage(receivedMessage, "server");
  };
</script>
</body>
</html>