UNPKG

@synerty/vortexjs

Version:

Custom observable data serialisation and routing based on Angular 2+

37 lines (36 loc) 1.38 kB
import { NgZone } from "@angular/core"; import { Subject } from "rxjs"; import * as i0 from "@angular/core"; export interface VortexStatusServiceSnapshot { isOnline: boolean; queuedActionCount: number; } export declare class VortexStatusService { private zone; readonly isOnline: Subject<boolean>; readonly httpSessionLoggedOut: Subject<void>; readonly debug: Subject<string>; readonly info: Subject<string>; readonly warning: Subject<string>; readonly errors: Subject<string>; readonly connectionInfo: Subject<string>; readonly connectionError: Subject<string>; private wasOnline; constructor(zone: NgZone); get snapshot(): VortexStatusServiceSnapshot; setOnline(online: boolean): void; setHttpSessionLoggedOut(): void; queuedActionCount: Subject<number>; lastQueuedTupleActions: number; incrementQueuedActionCount(): void; decrementQueuedActionCount(): void; setQueuedActionCount(count: number): void; logDebug(message: string): void; logInfo(message: string): void; logWarning(message: string): void; logError(message: string): void; logConnectionInfo(message: string): void; logConnectionError(message: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<VortexStatusService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<VortexStatusService>; }