API REFERENCE
BubbleStreamSource
The BubbleStreamSource type declaration and related types. Optional fields are marked with ?.
Type declaration
export interface BubbleStreamSource {
readonly length: number;
readonly capacity: number;
readonly dropped: number;
push(datum: BubbleDatumInput): void;
pushBatch(data: ReadonlyArray<BubbleDatumInput>): void;
shift(count: number): void;
replace(data: ReadonlyArray<BubbleDatumInput>): void;
snapshot(): BubbleDatumInput[];
subscribe(listener: (event: BubbleStreamEvent) => void): () => void;
}