UNPKG

@fhylabs/loom

Version:

Loom is a super-fast, lightweight, and secure real-time library for data synchronization between clients and services.

17 lines (16 loc) 410 B
interface BufferItem { channel: string; data: any; sender?: string; receiver?: string; timestamp: number; } export declare class PersistenceManager { private _buffer; private storageKey; constructor(history: boolean); buffer(channel: string, data: any, history: boolean, sender?: string, receiver?: string): void; getAll(): BufferItem[]; clear(): void; } export {};