Hosanna UI API v2.3.0-next
    Preparing search index...

    SharedRemoteDebugState manages the status and logs for remote debugging. Extends HsObservable to provide observable state for UI updates.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    __hs_isObservable: boolean = true
    _cacheKey: string = 'TODO'
    _hid?: string

    Identifies this object as an observer of other observables. Assigned on first use.

    maxMessages: number = 10

    Maximum number of messages to keep in the status buffer.

    statusBuffer: string[] = []

    Buffer holding the most recent status messages.

    statusText: string = 'Waiting for connection...'

    Observable status text for display in the UI. Updated whenever a new status message is logged.

    version: number = 0

    Methods

    • Stops observing every object held in an @observable field. Call when this object is no longer needed.

      Returns void

    • Parameters

      • key: string

      Returns unknown

    • Logs a status message to the buffer and updates the observable statusText. If the buffer exceeds maxMessages, the oldest message is removed.

      Parameters

      • text: string

        The status message to log.

      Returns void


    • Observing other observables

      @observable(['fieldA', 'fieldB']) other!: OtherObservable on an HsObservable subclass observes those fields of other, the same way the decorator does on a view. Changes arrive in onObservableFieldUpdated.


      Parameters

      • field: string
      • OptionalfieldFilters: string[]

      Returns void

    • Parameters

      • key: string
      • owner: IIdentifiable

      Returns void

    • Reports a received remote debug command by logging a corresponding status message.

      Parameters

      Returns void

    • Observes again after dispose(), using the objects currently held in the @observable fields.

      Returns void

    • Parameters

      • key: string
      • value: unknown

      Returns void

    • Assignment to an @observable field: observe the new object and notify this object's own observers.

      Parameters

      • key: string
      • value: unknown

      Returns void