• Subscribe to a KOS Persistence Store or create a new one The store will be namespaced by the stateKey and the sessionId allows for multiple instances of data to be created with the same store using eh session id as the discriminator.

    If the sessionId is not provided, the store will be global

    Parameters

    • stateKey: string

      the namespace of the given persistence store

    • Optional sessionId: string

      the data partition with the namespace that the store will operate within

    Returns Promise<KosPersistenceStore>

    a KosPersistenceStore instance