Function Observable

  • Creates a target that emits logs as observable events, using a Subject

    Type Parameters

    • T = any

      the type of serialized data that will be emitted from the Observable

    Parameters

    • Optional name: string

      name of the target. Defaults to 'observable'

    • Optional subject: Subject<T>

      the Subject to use to emit observable events. If not provided, creates a standard Subject. E.g. you can pass a ReplaySubject if you need to replay values with a specific buffer size

    Returns {
        observable: Observable<T>;
        target: Target;
    }

    object containing the target and the observable the target will emit to

    • observable: Observable<T>
    • target: Target

Generated using TypeDoc