Open arily opened 4 years ago
my project uses socketIO and uses default namespace, so every client are constantly receiving status or I have to create another socket for the monitor.
instead of
const app = express(); const server = require('http').Server(app); const io = require('socket.io')(server); const statusSocket = require('socket.io')(server,{ path: '/statusSocket' }); app.use(require('express-status-monitor')({ socketPath: '/statusSocket', websocket: statusSocket, }));
it will be better to support custom namespace
const app = express(); const server = require('http').Server(app); const io = require('socket.io')(server); app.use(require('express-status-monitor')({ namespace: '/status', websocket: io.of('/status'), }));
my project uses socketIO and uses default namespace, so every client are constantly receiving status or I have to create another socket for the monitor.
instead of
it will be better to support custom namespace