VaultChatBackendOptions
Defined in: src/lib/chatStore/vaultBackend.ts:96
Properties
activity?
optionalactivity:VaultChatActivity
Defined in: src/lib/chatStore/vaultBackend.ts:105
cache?
optionalcache:object
Defined in: src/lib/chatStore/vaultBackend.ts:113
Keeps account’s confirmed records and /changes cursor sealed with seal, so a cold start reads them before vault answers.
account
account:
string
seal
seal:
Pick<SealingCipher,"encrypt"|"decrypt">
storage
storage:
ChatCacheStorage
channel?
optionalchannel:string
Defined in: src/lib/chatStore/vaultBackend.ts:111
BroadcastChannel name shared by this account’s tabs, so one tab’s writes prompt the others to poll.
now()?
optionalnow: () =>number
Defined in: src/lib/chatStore/vaultBackend.ts:119
Returns
number
outbox?
optionaloutbox:object
Defined in: src/lib/chatStore/vaultBackend.ts:100
Persists unsent writes, sealed with seal, so they survive a reload; locks defaults to navigator.locks.
locks?
optionallocks:ChatOutboxLocks
seal
seal:
Pick<SealingCipher,"encrypt"|"decrypt">
storage
storage:
ChatOutboxStorage
pollIntervalMs?
optionalpollIntervalMs:number
Defined in: src/lib/chatStore/vaultBackend.ts:107
Polls /changes this often while active; 0 polls only on activity and broadcast hints.
store
Defined in: src/lib/chatStore/vaultBackend.ts:98
A connected store, or a function that connects one; with a seeded cache, reads serve cached chats until it resolves.
subscribeChanges()?
optionalsubscribeChanges: (onChange: (connected:boolean) =>void) => () =>void
Defined in: src/lib/chatStore/vaultBackend.ts:109
A createVaultRealtime source for private_chats: each report polls /changes, and while it reports connected the periodic poll runs at most every 5 minutes.
Parameters
| Parameter | Type |
|---|---|
|
|
( |
Returns
():
void
Returns
void
threadCacheSize?
optionalthreadCacheSize:number
Defined in: src/lib/chatStore/vaultBackend.ts:118