mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: log errors from mubsub
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
const mubsub = require('mubsub-nbb');
|
const mubsub = require('mubsub-nbb');
|
||||||
const connection = require('./connection');
|
const connection = require('./connection');
|
||||||
const client = mubsub(connection.getConnectionString(), connection.getConnectionOptions());
|
|
||||||
|
|
||||||
module.exports = client.channel('pubsub');
|
const client = mubsub(connection.getConnectionString(), connection.getConnectionOptions());
|
||||||
|
client.on('error', err => console.error(err));
|
||||||
|
const channel = client.channel('pubsub');
|
||||||
|
channel.on('error', err => console.error(err));
|
||||||
|
module.exports = channel;
|
||||||
|
|||||||
Reference in New Issue
Block a user