This commit is contained in:
@@ -17,6 +17,7 @@ if (process.env.NODE_ENV) {
|
||||
const app = express();
|
||||
const httpServer = createServer(app);
|
||||
const io = new Server(httpServer, {
|
||||
path: '/api/socket.io',
|
||||
cors: {
|
||||
origin: true,
|
||||
credentials: true,
|
||||
@@ -86,4 +87,4 @@ app.get("/api/status", (req, res) => {
|
||||
const PORT = process.env.PORT || 5000;
|
||||
httpServer.listen(PORT, () => {
|
||||
console.log("Server running on port 5000");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user