Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockConnectionStatusService

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected connectionStatus

connectionStatus: ConnectionStatus = ConnectionStatus.ONLINE

Protected Readonly logger

logger: ILogger = new MockLogger()

Protected Readonly options

Protected Readonly statusChangeEmitter

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

Accessors

alive

  • set alive(alive: boolean): void

currentStatus

onStatusChange

Methods

dispose

  • dispose(): void

Protected fireStatusChange

Protected updateStatus

  • updateStatus(success: boolean): void