I have installed mosquitto
i am using paho
to connect sserver over websocket. I am getting
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
I am trying to download using sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
on ubuntu. I didn't find any /etc/mosquitto
directory
I think installing this way will start mosquitto automatically because mosquitto_pub & mosquitto_sub is working fine after installing mosquitto.I didn't started it manualy.
But when i do dpkg --listfiles mosquitto
it shows dpkg-query: package 'mosquitto' is not installed
.
What i am doing wrong and where can i change the config file. I am not able to locate config file.
apt-get install mosquitto
after adding the ppa then you should have a/etc/mosquitto/
directory with a basic config file. The mosquitto_pub/mosquitto_sub commands are held in the mosquitto-clients package and can be installed with out the broker – hardillb