minca
ApiSessionInterfaces

Interface: MincaConnectionConfig

Defined in: packages/core/src/session/connection.ts:53

Properties

PropertyModifierTypeDescriptionDefined in
account?readonly(accounts) => string | null | undefinedWhich connected account to act for on starting, such as the one the address names. Default: the one used last here, else the first.packages/core/src/session/connection.ts:79
homereadonlystringThe account home to suggest — the person can use their own insteadpackages/core/src/session/connection.ts:55
keys?readonlyobjectWhere the app's keys are kept, one per account, by name. Default: this site's IndexedDB (appKey).packages/core/src/session/connection.ts:71
keys.forgetpublic(name) => Promise<void>-packages/core/src/session/connection.ts:73
keys.getpublic(name) => Promise<AppKey>-packages/core/src/session/connection.ts:72
network?readonlyNodeNetworkConfigRelays and always-on nodes the node connects to. Omit to stay offline.packages/core/src/session/connection.ts:59
requestreadonlyOmit<ConnectRequest, "v" | "audience" | "proof">What to ask forpackages/core/src/session/connection.ts:57
storage?readonlyKeyValueStore | nullWhere the grants are kept. Default localStorage.packages/core/src/session/connection.ts:61
stores?readonly(grant) => StoreFactoryWhere the node keeps its data. Default: this site's IndexedDB.packages/core/src/session/connection.ts:63
worker?readonly() => WorkerLikeRuns the node in a worker, off the page's main thread (@minca/core/node-worker). Called each time the node starts; the worker ends when it closes. Not with stores.packages/core/src/session/connection.ts:69

On this page