Skip to main content

addTransactionCapability

amiudmodz


amiudmodz / addTransactionCapability

Function: addTransactionCapability()

addTransactionCapability(state, logger, __namedParameters): SignalKeyStoreWithTransaction

Defined in: src/Utils/auth-utils.ts:116

Adds DB-like transaction capability to the SignalKeyStore Uses AsyncLocalStorage for automatic context management

Parameters​

state​

SignalKeyStore

the key store to apply this capability to

logger​

ILogger

logger to log events

__namedParameters​

TransactionCapabilityOptions

Returns​

SignalKeyStoreWithTransaction

SignalKeyStore with transaction capability