A node.js MQTT broker app with (optional) data storage in MongoDB.
For an explanation of MQTT, see MQTT Essentials.
git clone https://github.com/MarkNjunge/mqtt-broker.git
yarn install
cp .env.sample .env
yarn start
Connect to the broker using the url mqtt://localhost:1883 using a client app such as MQTTBox.
To attach the broker to a http server, set ATTACH_HTTP to true and HTTP_PORT to your desired port. Then connect to ws://localhost:3000
Content type
Image
Digest
Size
34.1 MB
Last updated
over 6 years ago
docker pull marknjunge/mqtt-broker