Skip to main content
Module

x/rxjs/mod.ts>connectable

Deno port of RXJS
Latest
function connectable
import { connectable } from "https://deno.land/x/rxjs@v1.0.2/mod.ts";

Creates an observable that multicasts once connect() is called on it.

Parameters

source: ObservableInput<T>

The observable source to make connectable.

optional
config: ConnectableConfig<T> = [UNSUPPORTED]

The configuration object for connectable.

Returns

Connectable<T>

A "connectable" observable, that has a connect() method, that you must call to connect the source to all consumers through the subject provided as the connector.