Dynamic MQTT Broker that speaks protobufs
- Clone this repo
- run
npm i(make sure NodeJS installed, i used v18 in dev) - copy the environment example file:
cp .env.example.json .env.json - edit
.env.jsonwith the local path to your.protofiles - run
npm run import-protosto copy over and transform the files - run
npm run build-webto build protomq - run
npm start - visit the web URL it gives you (like
http://localhost:5173/) - connect an MQTT client:
mqtt://localhost:1884 - see broker info update in the web:
- clients change on connect/disconnect
- subscriptions change on subscribe/unsubscribe
- message log updates as new messages are published (top message is newest)