move socket.io out of server.js