Rxova
Skip to content

SharedStoreOptions

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.

ParameterType
metaMessageMeta

boolean


optional kind?: PeerKind;

What this client announces itself as. Defaults to ‘worker’ when there is no document, else ‘tab’.

CommonOptions.kind


optional persist?: PersistOptions;

Restore this store on creation and write it back as it changes.


optional transport?: (name) => Transport;

Transport factory, mainly for tests. Defaults to defaultTransport.

ParameterType
namestring

Transport

CommonOptions.transport