1.0.1 • Published 6 months ago
mqtt-sqlite-store v1.0.1
@ayushman_singh101/mqtt-sqlite-store
A simple and useful NPM package for describe your package's purpose briefly.
Installation
You can install this package using npm:
npm install @ayushman_singh101/mqtt-sqlite-store
Or using Yarn:
yarn add @ayushman_singh101/mqtt-sqlite-store
Usage
Import the package and use it in your project:
Example (JavaScript)
const myPackage = require('@ayushman_singh101/mqtt-sqlite-store');
Example (ES Module)
import myPackage from '@ayushman_singh101/mqtt-sqlite-store';
Using the package
import Manager from 'mqtt-sqlite-store';
import mqtt from 'mqtt';
const manager = new Manager ('mqtt-store');
const mqttClient = mqtt.connect ('mqtt://localhost:1883', {
clientId: 'my-unique-client-id',
clean: true,
keepalive: 60,
reconnectPeriod: 5000,
outgoingStore: manager.outgoing,
incomingStore: manager.incoming,
});
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.