Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FrontendConnectionStatusService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected connectionStatus

connectionStatus: ConnectionStatus = ConnectionStatus.ONLINE

Protected Readonly logger

logger: ILogger

Protected Readonly options

Protected Readonly pingService

pingService: PingService

Private scheduledPing

scheduledPing: number | undefined

Protected Readonly statusChangeEmitter

statusChangeEmitter: Emitter<ConnectionStatus> = new Emitter<ConnectionStatus>()

Protected Readonly wsConnectionProvider

wsConnectionProvider: WebSocketConnectionProvider

Accessors

currentStatus

onStatusChange

Methods

Protected clearTimeout

  • clearTimeout(handle?: undefined | number): void

dispose

  • dispose(): void

Protected fireStatusChange

Protected init

  • init(): void

Protected performPingRequest

  • performPingRequest(): Promise<void>

Protected schedulePing

  • schedulePing(): void

Protected setTimeout

  • setTimeout(handler: (...args: any[]) => void, timeout: number): number

Protected updateStatus

  • updateStatus(success: boolean): void