Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SentinelOffline

This class exposes a redux store that can be used when EVA or even the entire internet is unavailable. It is aimed at providing a way to process order with a heavily reduced functionality set

export

Hierarchy

  • SentinelOffline

Index

Constructors

constructor

Properties

Private availableServices

availableServices: GetAvailableServicesResponse | undefined

The list of available services available on the sentinel

changes$

changes$: Subject<TOnlineStatus> = new Subject()

The status change stream

memberof

SentinelStatus

status

status: TOnlineStatus = "unknown"

Indicates we are currently in offline mode

Accessors

availableServiceCount

  • get availableServiceCount(): number

Methods

getServiceNameFromUrl

  • getServiceNameFromUrl(url: string): undefined | string
  • Helper message to infer the service name from the url

    Parameters

    • url: string

      The input URL

    Returns undefined | string

    The service name

goOffline

  • goOffline(): Promise<void>

goOnline

  • goOnline(): Promise<void>

isServiceAvailableOffline

  • isServiceAvailableOffline(url: string): boolean

start

  • start(): Promise<void>
  • Start the support for using the sentinel for an offline limited Redux store

    Returns Promise<void>

stop

  • stop(): Promise<void>