Skip to content

js-bao-wss-client


js-bao-wss-client / StorageRecord

Interface: StorageRecord<T> ​

Storage Provider Abstraction

Provides a unified interface for key-value storage across environments:

  • Browser: IndexedDB
  • Node.js: better-sqlite3 (with file persistence)
  • Fallback: In-memory

Type Parameters ​

T ​

T = unknown

Properties ​

key ​

key: string


metadata? ​

optional metadata?: Record<string, unknown>


updatedAt ​

updatedAt: string


updatedAtMs ​

updatedAtMs: number


value ​

value: T

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30