mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-20 00:20:58 +00:00
Configure socketio before listening
This commit is contained in:
parent
0192be3052
commit
3a55e1c572
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -28,12 +28,12 @@ require(path.join(__dirname, "config/express"))(app);
|
|||
// Add routes
|
||||
require(path.join(__dirname, "config/routes"))(app);
|
||||
|
||||
require(path.join(__dirname, "config/socketio"))(io);
|
||||
|
||||
// Configure socket.io server
|
||||
|
||||
server.listen(config.port);
|
||||
|
||||
require(path.join(__dirname, "config/socketio"))(io);
|
||||
|
||||
console.log("Listening on port", config.port);
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Reference in a new issue