This app demonstrates a way to connect to a Message Broker via MQTT using ng2-mqtt library (that is a Angular port of the mqttws31 library MQTT)
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
You can edit src/assets/config.json configuration file to set the correct connection parameters for your message broker.
MIT Licence.