Document connect.then