aedes-persistence
Version:
The spec for an Aedes persistence, with abstract tests and a fast in-memory implementation.
16 lines (13 loc) • 353 B
JavaScript
const { test } = require('node:test')
const memory = require('../persistence.js')
const abs = require('../abstract.js')
const persistence = (opts = {}) => {
opts.broadcastSubscriptions = true
return memory(opts)
}
// test the async interface of callbackPersistence including broadcastSubscription
abs({
test,
persistence,
testAsync: true
})