Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkHealthMonitor

The network health monitor tries to detect when the network connection to the EVA backend becomes unstable or goes down. If a sentinel is present it can defer most of its work to the Sentinel offline status

export

Hierarchy

  • NetworkHealthMonitor

Index

Constructors

constructor

  • new NetworkHealthMonitor(stableThreshold?: number, unstableThreshold?: number): NetworkHealthMonitor
  • Creates an instance of NetworkHealthMonitor with its threshold values. Should they not suffice applications can modify them

    Parameters

    • Default value stableThreshold: number = 85
    • Default value unstableThreshold: number = 35

    Returns NetworkHealthMonitor

Properties

changes$

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

The status change stream

stableThreshold

stableThreshold: number

unstableThreshold

unstableThreshold: number

Methods

getCurrentStatus