• Projects the subscription state of the observable

    Type Parameters

    • T

    Parameters

    • onState: ((subscribed: boolean) => void)

      Callback triggered whenever the subscription state changes

        • (subscribed): void
        • Parameters

          • subscribed: boolean

          Returns void

    Returns MonoTypeOperatorFunction<T>

  • Projects the subscription state of the observable

    Type Parameters

    • T

    Parameters

    • state$: Subject<boolean>

      A subject that will receive the current subscription state

    Returns MonoTypeOperatorFunction<T>