software master at the intersection of technology, science and art

home

download

cold vs hot


Observables observe and they can be observing before they are subscribed to. A hot observable is when the observable is emitting datg prior to the subscription and the subscription shows only teh emitted valuse at the time the subscription starts. A cold observable does not start emitting valuse until it is subscribed to.


Simple - not quite becasue there is a grey zone and RxJS provides methods to retrieve earlier emitted values from a hot observable. So there are warm Observables. The operators public, connect and refCount which permits the definition of warm Observalbles. Please see the reference for details