publishReplay
deprecatedCreates a ConnectableObservable that uses a ReplaySubject internally.
Will be removed in v8. To create a connectable observable that uses a
ReplaySubject under the hood, use connectable.
source.pipe(publishReplay(size, time, scheduler))
is equivalent to
connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })
.
If you're using refCount after publishReplay
, use the share operator instead.
publishReplay(size, time, scheduler), refCount()
is equivalent to
share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })
.
Details: https://rxjs.dev/deprecations/multicasting
Creates a ConnectableObservable that uses a ReplaySubject internally.
§Parameters
The buffer size for the underlying ReplaySubject.
The window time for the underlying ReplaySubject.
The timestamp provider for the underlying ReplaySubject.
§Return Type
Creates an observable, that when subscribed to, will create a ReplaySubject,
and pass an observable from it (using asObservable) to
the selector
function, which then returns an observable that is subscribed to before
"connecting" the source to the internal ReplaySubject
.
Since this is deprecated, for additional details see the documentation for connect.
§Parameters
The buffer size for the underlying ReplaySubject.
The window time for the underlying ReplaySubject.
A function used to setup the multicast.
The timestamp provider for the underlying ReplaySubject.
§Return Type
Creates a ConnectableObservable that uses a ReplaySubject internally.
§Parameters
The buffer size for the underlying ReplaySubject.
The window time for the underlying ReplaySubject.
Passing undefined
here determines that this operator will return a ConnectableObservable.
The timestamp provider for the underlying ReplaySubject.