SharedStoreOptions
Extends
Section titled “Extends”Properties
Section titled “Properties”accept?
Section titled “accept?”optional accept?: (meta) => boolean;Gatekeeper for incoming remote writes (patches and snapshot merges): return false to ignore them. Lets callers delimit how much is shared — e.g. accept only writes from other tabs, not from workers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
meta | MessageMeta |
Returns
Section titled “Returns”boolean
optional kind?: PeerKind;What this client announces itself as. Defaults to ‘worker’ when there is no document, else ‘tab’.
Inherited from
Section titled “Inherited from”persist?
Section titled “persist?”optional persist?: PersistOptions;Restore this store on creation and write it back as it changes.
transport?
Section titled “transport?”optional transport?: (name) => Transport;Transport factory, mainly for tests. Defaults to defaultTransport.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name | string |