UPDATED SCRIPT FOR SOCKET.IO RASA CHATBOT