0.1.0 • Published 6 months ago
@enocean-js/mqtt-simple-router v0.1.0
@enocean-js/mqtt-simple-router
A minimal MQTT topic router for Node.js and browser.
Features
- Simple topic pattern matching (wildcards, named params)
- Lightweight, zero dependencies (optional)
- Usable in Node.js and browser environments
Usage
import { Router } from '@enocean-js/mqtt-simple-router';
const router = new Router(mqttClient);
router.on('foo/+/bar', (payload, params) => {
// handle message
});
License
MIT
0.1.0
6 months ago