Moved socket.io configuration to a new file