title: How do I enable both TCP and web sockets in Mosquitto?
body: <p>I have used the Paho Library to implement messaging through MQTT.  In my mosquitto.conf file, I have the following:</p>
  
  <pre><code>listener 1883
  protocol websockets
  </code></pre>
  
  <p>This configuration is working for web applications. When I tried to connect using Android and iOS with TCP, it gives the error, "Connection timed out". When I disable the <code>protocol websockets</code> line, it is working with Android and iOS, but then the webpage cannot connect.</p>
  
  <p>When I try the test MQTT server, test.mosquitto.org, everything works fine.</p>
  
  <p>Please tell me I need it to work with Android, iOS and web applications, supporting both WebSockets and TCP connections.</p>