mqtt-jsonl-store
v0.2.1
Published
JSONL store for in-flight MQTT.js packets.
Downloads
5,424
Readme
mqtt-jsonl-store
JSONL store for in-flight MQTT.js packets. Powered by jsonl-db.
Installation
npm install mqtt-jsonl-store
Usage
const mqtt = require("mqtt");
const { Manager } = require("mqtt-jsonl-store");
const manager = new Manager("path/to/store");
async function main() {
await manager.open();
const client = mqtt.connect("mqtt://localhost", {
incomingStore: manager.incoming,
outgoingStore: manager.outgoing,
});
}
main();