API reference: @salmonui/data/stream
LiveEmitterinterface
import type { LiveEmitter } from '@salmonui/data/stream';Also exported from @salmonui/data.
interface LiveEmitter<Row> {
replace(rows: readonly Row[], totalRowCount?: number): void;
patch(patch: LivePatch<Row>): void;
message(message: WireLiveMessage): void;
conflict(conflict: ConflictSnapshot<Row>): void;
fail(error: unknown): void;
}
| Name | Signature | Description |
|---|---|---|
replace | replace(rows: readonly Row[], totalRowCount?: number): void; | |
patch | patch(patch: LivePatch<Row>): void; | |
message | message(message: WireLiveMessage): void; | Applies a JSON-protocol live message (tuples, dictionaries). |
conflict | conflict(conflict: ConflictSnapshot<Row>): void; | |
fail | fail(error: unknown): void; |