Tutorial: SnapshotSource.wrap

SnapshotSource.wrap

Asynchronously returns a SnapshotSource object that represents an existing SnapshotSource.

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