The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Introduction to the ConnectableObservable and using publish().refCount() in RxJS

Introduction to the ConnectableObservable and using publish().refCount() in RxJS

3:56
An RxJS cold Observable can be made hot by declaring it with .publish().refCount(). What does publish() do? What does refCount() do? This lesson introduces the ConnectableObservable, and how to use it with publish and refCount.
Watch this lesson now
Avatar
egghead.io

An RxJS cold Observable can be made hot by declaring it with .publish().refCount(). What does publish() do? What does refCount() do? This lesson introduces the ConnectableObservable, and how to use it with publish and refCount.

Avatar
Dean

Thanks for the video!
Is it possilble, that in the future - these RxJS videos also perhaps give a real world usage. I think the concepts/tutorials are fantastic, but I am sometimes at a loss to find any usage beyond some async ajax call usage.

In reply to egghead.io
Avatar
Andre

Hi Dean, yes, most likely we will get to that as well. As videos are bite-sized, we need to focus on one point at a time, that's why this video is focused on explaining the publish concepts.

In reply to Dean
Avatar
Bogdan

Hi,

Really great stuff about RxJS. And yes, please give at least some references about real world usages for hot/cold Observables and other topics in the videos. would help a lot..!!

In reply to Andre
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?