Tutorial: SnapshotSource.wrapSync

SnapshotSource.wrapSync

Synchronously returns a SnapshotSource object that represents an existing SnapshotSource.

const snapshotSource = fin.SnapshotSource.wrapSync(fin.me);
// Use wrapped instance's getSnapshot method, e.g.:
const snapshot = await snapshotSource.getSnapshot();