getServerStatusUpdates(): Observable<ServerStatusUpdate> { this._checkForDisposal(); return this._flowRoot$.flatMap(root => { const pathToRoot = root.getPathToRoot(); // The status update stream will be completed when a root is disposed, so there is no need to // use takeUntil here to truncate the stream and release resources. return root.getServerStatusUpdates().map(status => ({pathToRoot, status})); }); }