use ReplaySubject to cache CloudConnection