simple-mqtt-broker

Stream-based Connection object for MQTT, extracted from MQTT.js

Usage no npm install needed!

<script type="module">
  import simpleMqttBroker from 'https://cdn.skypack.dev/simple-mqtt-broker';
</script>

README

simple-mqtt-broker

A simple mqtt broker that:

  • accept all client connection
  • broadcast everything to all clients
  • connected mqtt client will subscribe to all topics, add logic to ignore non-subscribe topic if you can

Installation

npm install -g simple-mqtt-broker

Start server

mqtt-broker

Based on https://github.com/mqttjs/mqtt-connection