Welshman Docs / @welshman/app / Sync
Class: Sync
Defined in: app/src/plugins/sync.ts:19
Negentropy-aware sync. Pulls/pushes events between the local repository and a set of relays, using NIP-77 reconciliation where the relay supports it and falling back to plain request/publish otherwise. Reads NIP-11 relay profiles from the Relays collection to detect negentropy support.
Constructors
Constructor
new Sync(
app):Sync
Defined in: app/src/plugins/sync.ts:20
Parameters
app
Returns
Sync
Properties
app
readonlyapp:IApp
Defined in: app/src/plugins/sync.ts:20
Methods
pull()
pull(
__namedParameters):Promise<void>
Defined in: app/src/plugins/sync.ts:25
Parameters
__namedParameters
Returns
Promise<void>
push()
push(
__namedParameters):Promise<void>
Defined in: app/src/plugins/sync.ts:40
Parameters
__namedParameters
Returns
Promise<void>
query()
query(
filters):TrustedEvent[]
Defined in: app/src/plugins/sync.ts:22
Parameters
filters
Filter[]