LiveLoveApp logo

Exercise - Multicast Operator

Exercise

The goal of this exercise is to learn how to create a multicasted Observable.

  1. Open exercise on codesandbox. I've already imported the necessary rxjs functions and classes for you. I also created a new observable using the interval() function that will emit a value every 1000 milliseconds.
  2. Define a new Subject().
  3. Use the multicast() operator in the pipe() of the source observable.
  4. Subscribe to the multicasted observable and log out the next notification values.
  5. Connect the Subject to the source Observable.