1×
Become a member
to unlock all features
Autoplay

    Multicasting shortcuts: publish() and variants

    rxjsRxJS
    ^5.0.0

    Because using multicast with a new Subject is such a common pattern, there is a shortcut in RxJS for this: the publish() operator. This lesson introduces publish() and its variants publishReplay(), publishBehavior(), publishLast(), share(), and shows how they simplify the creation of multicasted Observables.