Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Persistence support

SudoPlz edited this page May 3, 2014 · 2 revisions

The persistence is automatically configured when using the mosca.Server constructor, but it needs to be explicitly wired up. Here is the list of all the supported databases:

If you would to implement another database, feel free to submit a pull-request.

The wiring is easy:

var mosca = require("mosca");
var server = new mosca.Server();
var db = new mosca.persistence.LevelUp({ path: "/path/to/the/db" });
db.wire(server);