How to connect my api through sockei id

I am very new in rasa. I am not able to connect my bot with a api through socket id. Please anyone help me as early as possible. Thanks

Enable the socket io channel in the credentials.yml. After that, you should be able to connect to it after a restart.

Thank you for your response, but how I define the socket channel in the credentials.yml. socketio: user_message_evt: user_uttered bot_message_evt: bot_uttered session_persistence: true I have done this before but it was not working for me.

That’s all you need to define on Rasa’s side, is your problem on the client side? Try this:

  • Run rasa using rasa run --enable-api --debug
  • It should show the available webroutes including /socket.io

If it shows up:

  • Start connecting rasa through a websocket
  • Check the server log. It should be printing several debug logs from engine.io and socket.io whenever it receives events from your client.
1 Like

Thank you so much for your help. I just confuse where I have to give my socket id to connect my server chat application. Please help me to define where and how can I define the socket host and port number then it will communicate with my rasa bot.