   <button id="send-button" onclick="sendMessage()">Send</button>
        </div>
    </div>

    <script>
        const ws = new WebSocket('ws://localhost:8002/ws/chat');

        ws.onmessage = function (event) {
            const message = JSON.parse(event.data);

            if (message.type === 'UserInputRequestedEvent') {
                // Re-enable input and send button if UserInputRequestedEvent is received
                enableInput();
            }
            else if (message.type === 'error') {