How can I receive notifications when Rxjs Subject is subscribed to / unsubscribed from

Viewed 1527

I'm trying to use Rxjs as a way to manage garbage collection in a large state tree.

How can I create an operator that takes a callback function that is triggered every time the number of subscribers to the observable alters?

1 Answers
Related