share
Returns an Observable that will share a single connection to the source Observable (this).
This Observable will not subscribe to the source until the first observer subscribes, and no emissions are replayed to late-subscribing observers.
Returns an Observable that will share a single connection to the source Observable (this).
This Observable will not subscribe to the source until the first observer subscribes. Emissions are replayed to late-subscribing observers according to the given replay
Parameters
replay
The number of emissions to cache and replay to late-subscribing observers