test mongodb again
parent
8f7482955d
commit
2d8d234c57
@ -1,8 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var mubsub = require('mubsub-nbb');
|
||||
|
||||
var db = require('../mongo');
|
||||
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
|
||||
|
||||
var client = mubsub(db.getConnectionString(), db.getConnectionOptions());
|
||||
client.on('error', function (err) {
|
||||
console.error('mongo pubsub error', err);
|
||||
});
|
||||
module.exports = client.channel('pubsub');
|
||||
|
Loading…
Reference in New Issue