Class Session

Hierarchy

  • CreateDestroyStartStop
    • Session

Constructors

  • Parameters

    • __namedParameters: {
          fs: FileSystem;
          logger: Logger;
          sessionTokenPath: string;
      }
      • fs: FileSystem
      • logger: Logger
      • sessionTokenPath: string

    Returns Session

Properties

[initLock]: RWLockWriter
logger: Logger
sessionTokenPath: string

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

  • Returns Promise<void>

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

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

    Returns void

  • Parameters

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

    Returns Promise<void>

  • Parameters

    • __namedParameters: {
          fresh?: boolean;
          fs?: FileSystem;
          logger?: Logger;
          sessionToken?: SessionToken;
          sessionTokenPath: string;
      }
      • Optional fresh?: boolean
      • Optional fs?: FileSystem
      • Optional logger?: Logger
      • Optional sessionToken?: SessionToken
      • sessionTokenPath: string

    Returns Promise<Session>

Generated using TypeDoc