aedes-persistence-nedb
Aedes persistence, backed by NeDB.
See aedes-persistence for the full API, and Aedes for usage.
Install
npm i aedes aedes-persistence-nedb --save
API
Persistence (options)
Creates a new instance of aedes-persistence-nedb. Accepts an options object to override defaults.
var NedbPersistence = ;var persistence = path: './db' // defaults to './data', prefix: 'mqtt' // defaults to '';
Example
Creates a new Aedes instance that persists to NeDB. Connect to this instance with a MQTT client to see it working.
var NedbPersistence = ;var Aedes = ;var net = ; var db = ;var aedes = ;var server = net;var port = 1883; server;
Maintainers
Contributing
See the CONTRIBUTING file for details.
License
MIT