title: Connecting Rasa chatbot to Webchat
body: <p>I am trying to connect this webchat widget to rasa (<a href="https://github.com/mrbot-ai/rasa-webchat" rel="nofollow noreferrer">https://github.com/mrbot-ai/rasa-webchat</a>), but I am getting this <a href="https://i.stack.imgur.com/iTEVY.png" rel="nofollow noreferrer">error</a> in my console, and also this <a href="https://i.stack.imgur.com/BBZAV.png" rel="nofollow noreferrer">error</a> on the terminal where I am running my connector script.</p>
  
  <p>But two days ago I did not have this error in my connector, also I was using this Package in Angular <a href="https://www.npmjs.com/package/angular-chat-widget-rasa" rel="nofollow noreferrer">angular-chat-widget-rasa</a>, but now even this package can not connect with Rasa.</p>
  
  <p>For Webchat interface, I pasted this code on my website inside the body tag.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
      &lt;div id="webchat"&gt;
          &lt;script src="https://storage.googleapis.com/mrbot-cdn/webchat-latest.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              WebChat.default.init({
                  selector: "#webchat",
                  initPayload: "/get_started",
                  interval: 1000, // 1000 ms between each message
                  customData: { "sender": "django" }, // arbitrary custom data. Stay minimal as this will be added to the socket
                  socketUrl: "https://localhost:5002",
                  title: "Connect",
                  subtitle: "The bot which connects people",
                  profileAvatar: "https://rasa.com/assets/img/demo/rasa_avatar.png",
                  showCloseButton: true,
                  fullScreenMode: false,
                  hideWhenNotConnected: false,
              })
          &lt;/script&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and here is the code of my connector:</p>
  
  <pre><code>from rasa.core.agent import Agent
  from rasa.core.interpreter import RasaNLUInterpreter
  from rasa.core.channels.socketio import SocketIOInput
  from rasa.utils.endpoints import EndpointConfig
  
  agent = Agent.load("./models/20190807-131628",
                     action_endpoint=EndpointConfig(url="http://localhost:5055/webhook"))
  
  input_channel = SocketIOInput(
      # event name for messages sent from the user
      user_message_evt="user_uttered",
      # event name for messages sent from the bot
      bot_message_evt="bot_uttered",
      # socket.io namespace to use for the messages
      namespace=None
  )
  
  s = agent.handle_channels([input_channel], 5002)
  </code></pre>
  
  <p>I am using macOS Mojave version 10.14.5 as an operating system and Rasa Version 1.0.9</p>
  
  <p>Please help me solve this problem, thanks</p>