Configure socketio before listening

This commit is contained in:
Chris Blanchard 2016-01-22 11:21:43 +00:00
parent 0192be3052
commit 3a55e1c572

View file

@ -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 = {