Message sent from app via socketoi not displayed in Rasa Chat Widget UI oficiall (rasa-chatbot-widget)

Hello,

I’m using the official Rasa Chat Widget ( rasa-chatbot-widget) with a custom button on my web page to send an intent (e.g., /ejemplos_uso) using the `socket.emit(“user_uttered”, { message: userMessage, session_id: sessionId }); method.

The message is correctly sent to the Rasa Server via Socket.IO and the Server responds accordingly — I can see the bot’s response in the browser console (chatWidgetReceivedMessage event). However, the response does not appear in the widget UI.

What works:

  • The widget is rendered correctly.
  • Initial payload is received and bot reply is displayed.
  • The socket.emit (‘/ejemplos_uso’)` function sends the message successfully (verified in Rasa server logs and browser console).
  • The chatWidgetReceivedMessage event fires and logs the bot’s reply.

What doesn’t work:

  • The bot response does not appear in the widget conversation UI.
  • Only responses to user-entered messages or the initial payload are shown.

Steps to reproduce:

  1. Initialize the widget with initial-payload.
  2. Add a button outside the widget.
  3. On button click, use socket.emit send the intent (‘/some_intent’)`.
  4. Message is sent, Rasa Server responds, but the response is not displayed in the widget UI.

To resolve this also modify the line sio.enter_room(sid, data["session_id"]) in venv/lib/python3.8/site-packages/rasa/core/channels/socketio.py to **await** sio.enter_room(sid, data["session_id"]) , and it works. credentials.yml socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true