Skip to content

platform/updates/feed-state

Defined in: app/src/platform/updates/feed-state.ts:6

Keeps the highest feed sequence seen in a small JSON file in the profile.

new JsonFeedStateStore(path): JsonFeedStateStore

Defined in: app/src/platform/updates/feed-state.ts:10

string

The state file.

JsonFeedStateStore

readSequence(): number

Defined in: app/src/platform/updates/feed-state.ts:14

Returns the highest sequence seen so far, or 0.

number

FeedStateStore.readSequence

writeSequence(sequence): void

Defined in: app/src/platform/updates/feed-state.ts:26

Stores a higher sequence.

number

Sequence of a verified index.

void

FeedStateStore.writeSequence