https://github.com/robertslando/mqtt-jsonl-store
JSONL store for in-flight MQTT.js packets.
https://github.com/robertslando/mqtt-jsonl-store
Last synced: 2 months ago
JSON representation
JSONL store for in-flight MQTT.js packets.
- Host: GitHub
- URL: https://github.com/robertslando/mqtt-jsonl-store
- Owner: robertsLando
- License: mit
- Created: 2022-11-14T10:29:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T14:01:54.000Z (over 1 year ago)
- Last Synced: 2025-03-25T00:36:03.645Z (4 months ago)
- Language: TypeScript
- Size: 2.09 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-jsonl-store
JSONL store for in-flight MQTT.js packets. Powered by [jsonl-db](https://github.com/AlCalzone/jsonl-db).
[](https://github.com/robertsLando/mqtt-jsonl-store/actions/workflows/ci.yml)
[ ](https://www.npmjs.com/package/mqtt-jsonl-store)
## Installation
```bash
npm install mqtt-jsonl-store
```## Usage
```js
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();
```