with socket.io in mongodb config