UNPKG

@synerty/orb-vortexjs

Version:

Custom observable data serialisation and routing based on Angular2

21 lines (20 loc) 744 B
import { VortexClientABC } from "./VortexClientABC"; import { NgZone } from "@angular/core"; import { VortexStatusService } from "./VortexStatusService"; export declare class VortexClientWebsocket extends VortexClientABC { private static readonly RECONNECT_BACKOFF; private Socket; private socket; private lastReconnectDate; private unsentBuffer; constructor(vortexStatusService: VortexStatusService, zone: NgZone, url: string); readonly isReady: boolean; protected sendVortexMsg(vortexMsgs: string[]): void; private sendMessages(); protected shutdown(): void; private createSocket(); private onMessage(event); private onOpen(event); private onClose(event); private onError(event); }