mosquitto ERR_CONNECTION_REFUSED with paho client
<p>I have installed <code>mosquitto</code> i am using <code>paho</code> to connect sserver over websocket. I am getting </p>

<p><code>WebSocket connection to 'ws://127.0.0.1:9001/mqtt' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
paho.js:977 WebSocket connection to 'ws://127.0.0.1:9001/mqtt' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED</code></p>

<p>I am trying to download using <code>sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa</code> on ubuntu. I didn't find any <code>/etc/mosquitto</code> directory</p>

<p>I think installing this way will start mosquitto automatically because mosquitto_pub &amp; mosquitto_sub is working fine after installing mosquitto.I didn't started it manualy.</p>

<p>But when i do <code>dpkg --listfiles mosquitto</code> it shows <code>dpkg-query: package 'mosquitto' is not installed</code>.</p>

<p>What i am doing wrong and where can i change the config file. I am not able to locate config file.</p>