Class SessionManager

Hierarchy

  • CreateDestroyStartStop
    • SessionManager

Constructors

Properties

[initLock]: RWLockWriter
db: DB
expiry?: number
keyRing: KeyRing
logger: Logger
sessionsDbPath: readonly (string | Buffer)[] = ...

Accessors

  • get [destroyed](): boolean
  • Returns boolean

  • get [eventHandled](): ReadonlyWeakSet<Event>
  • Returns ReadonlyWeakSet<Event>

  • get [eventHandlers](): ReadonlyMap<string, Set<EventHandlerInfo>>
  • Returns ReadonlyMap<string, Set<EventHandlerInfo>>

  • get [eventTarget](): EventTarget
  • Returns EventTarget

  • get [handleEventError](): ((evt) => void)
  • Returns ((evt) => void)

      • (evt): void
      • Parameters

        • evt: EventError

        Returns void

  • get [running](): boolean
  • Returns boolean

  • get [statusP](): Promise<Status>
  • Returns Promise<Status>

  • get [status](): Status
  • Returns Status

Methods

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • __namedParameters: {
          fresh?: boolean;
      } = {}
      • Optional fresh?: boolean

    Returns Promise<void>

  • Parameters

    • __namedParameters: {
          db: DB;
          expiry?: number;
          fresh?: boolean;
          keyRing: KeyRing;
          logger?: Logger;
      }
      • db: DB
      • Optional expiry?: number
      • Optional fresh?: boolean
      • keyRing: KeyRing
      • Optional logger?: Logger

    Returns Promise<SessionManager>

Generated using TypeDoc