You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I provide my own socket instance? I tried with const statusMonitor = require('express-status-monitor')({websocket: io}).
I've also tried with the port my server is on. (It's behind Nginx Proxy Manager, but my other socket stuff work).
The text was updated successfully, but these errors were encountered:
constexpress=require('express');constPORT=3000;constHOST='127.0.0.1';letapp=express();constserver=app.listen(PORT,HOST,()=>{console.log(`WS App listening on http://${HOST}:${PORT}`);console.log('Press Ctrl+C to quit.');});letio=require('socket.io')(server,{allowEIO3: true// this is required because ESM is using an old socket.io version})app.use(require('express-status-monitor')({websocket: io,}));
How do I provide my own socket instance? I tried with
const statusMonitor = require('express-status-monitor')({websocket: io})
.I've also tried with the port my server is on. (It's behind Nginx Proxy Manager, but my other socket stuff work).
The text was updated successfully, but these errors were encountered: