-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Own Socket instance? #181
Comments
@Pajsen9263 const express = require('express');
const PORT = 3000;
const HOST = '127.0.0.1';
let app = express();
const server = app.listen(PORT, HOST, () => {
console.log(`WS App listening on http://${HOST}:${PORT}`);
console.log('Press Ctrl+C to quit.');
});
let io = 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,
})); |
@tahayk it is work for me thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: