mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
fix(server): Define http server before initializing Socket.IO
This commit is contained in:
@@ -440,6 +440,7 @@ console.log(`INFO: Using Discovery Update Interval: ${DISCOVERY_UPDATE_INTERVAL}
|
||||
|
||||
// Create Express app
|
||||
const app = express();
|
||||
const server = http.createServer(app); // Create HTTP server instance
|
||||
|
||||
// Middleware
|
||||
app.use(cors());
|
||||
|
||||
Reference in New Issue
Block a user