TinyJoin logoTinyJoin

subscribe

The subscribe method listens for committed table changes and returns an unsubscribe function. OPFS Clients receive changes from every connected tab. After handover or page restoration, reset events notify every subscriber to re-query even though tables is empty.

subscribe(
  options: SubscriptionOptions,
  listener: (event: TablesChangedEvent) => void,
): () => void
TypeDescription
optionsSubscriptionOptions
listener(event: TablesChangedEvent) => void
returns() => void

Since

v0.0.5