import { BehaviorSubject, Observable, Subscription } from "rxjs"; import { $WebSocket } from "angular2-websocket/angular2-websocket"; import { OnLogin } from "../../shared/onlogin.service"; import { Poller } from "./poller"; import { PollerFactory } from "./poller-factory.service"; export declare class Watcher { protected pathFn: () => String; protected queryParams: any; protected onLogin: OnLogin; protected listFactory: () => Observable; protected pollerFactory: PollerFactory; protected ws: $WebSocket; protected serviceUrl: String; protected _dataStream: BehaviorSubject; protected subscription: Subscription; protected retries: number; protected connectTime: number; protected poller: Poller; constructor(pathFn: () => String, queryParams: any, onLogin: OnLogin, listFactory: () => Observable, pollerFactory: PollerFactory); readonly dataStream: Observable; /** * Forces recreation of the web socket */ recreateIfChanged(): void; /** * Forces recreation of the web socket */ recreate(): void; readonly info: string; close(): void; protected closeWebSocket(): void; /** * Returns the query string appended to the websocket URL */ protected readonly query: String; protected lazyCreateWebSocket(): void; protected onWebSocketError(): void; protected lazyCreatePoller(): void; ngOnDestroy(): void; }