Chapter 8. Heating up observables

This chapter

  • The difference between hot and cold observables
  • Working with WebSockets and event emitters via RxJS
  • Sharing streams with multiple subscribers
  • Understanding how hot and cold pertains to how the producer is created
  • Sending events as unicast or multicast to one or multiple subscribers

As you know, an observable function is a lazy computation, which means the entire sequence of operators that encompass the observable declaration won’t begin executing until an observer subscribes to it. But have you ever thought about what happens to all the events that occur before subscription happens? For instance, what does a mouse move observable do with all the mouse events or a WebSocket that has received a ...

Get RxJS in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.