|
|
@ -2,10 +2,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
var mubsub = require('mubsub-nbb');
|
|
|
|
var mubsub = require('mubsub-nbb');
|
|
|
|
var db = require('../mongo');
|
|
|
|
var db = require('../mongo');
|
|
|
|
const connString = db.getConnectionString();
|
|
|
|
var client = mubsub(db.getConnectionString());
|
|
|
|
|
|
|
|
|
|
|
|
var client = mubsub(connString);
|
|
|
|
|
|
|
|
client.on('error', function (err) {
|
|
|
|
|
|
|
|
console.error('mongo pubsub error ' + connString, err);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = client.channel('pubsub');
|
|
|
|
module.exports = client.channel('pubsub');
|
|
|
|