Manages all ClientNodeStores for a Node.

We eagerly load all available endpoint data from disk because this allows us to keep Endpoint initialization more synchronous. We can initialize most behaviors synchronously if their state is already in memory.

TODO - cleanup of storage for permanently removed endpoints

Hierarchy (view full)

Constructors

Accessors

  • get knownIds(): string[]
  • List all nodes present.

    Returns string[]

Methods

  • Returns Promise<void>

  • Allocate a stable local ID. for a peer

    The ID may be preassigned or we will assign using an incrementing sequential number. The number is reserved for the life of this process or, if data is persisted, until erased.

    Returns string

  • Returns Promise<void>

  • Obtain the store for a single ClientNode.

    These stores are cached internally by ID.

    Parameters

    • node: ClientNode

    Returns NodeStore