class stable
class ConnectableObservable<T> extends Observable {
constructor(source: Observable<T>, subjectFactory: () => Subject<T>)
protected _subject: Subject<T>
protected _refCount: number
protected _connection: Subscription
source: Observable<T>
protected subjectFactory: () => Subject<T>
_subscribe(subscriber: Subscriber<T>)
protected getSubject(): Subject<T>
connect(): Subscription
refCount(): Observable<T>
// inherited from index/Observable
static create: Function
static if: typeof iif
static throw: typeof throwError
constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic)
_isScalar: boolean
source: Observable<any>
operator: Operator<any, T>
lift<R>(operator: Operator<T, R>): Observable<R>
subscribe(observerOrNext?: PartialObserver<T> | ((value: T) => void), error?: (error: any) => void, complete?: () => void): Subscription
_trySubscribe(sink: Subscriber<T>): TeardownLogic
forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise<void>
pipe(...operations: OperatorFunction<any, any>[]): Observable<any>
toPromise(promiseCtor?: PromiseConstructorLike): Promise<T>
} constructor(source: Observable<T>, subjectFactory: () => Subject<T>)| source | Type: |
| subjectFactory | Type: |
| Property | Type | Description |
|---|---|---|
| _subject | Subject<T> | |
| _refCount | number | |
| _connection | Subscription | |
| source | Observable<T> | Declared in constructor. |
| subjectFactory | () => Subject<T> | Declared in constructor. |
_subscribe(subscriber: Subscriber<T>)| subscriber | Type: |
protected getSubject(): Subject<T>There are no parameters.
Subject<T>
connect(): SubscriptionThere are no parameters.
Subscription
refCount(): Observable<T>There are no parameters.
Observable<T>
© 2015–2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/class/ConnectableObservable