UNPKG

@synerty/orb-vortexjs

Version:

Custom observable data serialisation and routing based on Angular2

33 lines (32 loc) 1.58 kB
import { IPayloadFilt, Payload } from "./Payload"; import { NgZone } from "@angular/core"; import { Tuple } from "./Tuple"; import { ComponentLifecycleEventEmitter } from "./ComponentLifecycleEventEmitter"; import { Observable } from "rxjs"; import { PayloadEndpoint } from "./PayloadEndpoint"; import { IFilterUpdateCallable, TupleLoader } from "./TupleLoader"; import { OrbBalloonService } from "@synerty/orb-balloon"; import { VortexStatusService } from "./VortexStatusService"; export declare class VortexService { private vortexStatusService; private zone; private balloonMsg; private vortex; private static vortexUrl; constructor(vortexStatusService: VortexStatusService, zone: NgZone, balloonMsg: OrbBalloonService); /** * Set Vortex URL * * This method should not be used except in rare cases, such as a NativeScript app. * * @param url: The new URL for the vortex to use. */ static setVortexUrl(url: string): void; reconnect(): void; sendTuple(filt: IPayloadFilt | string, tuples: any[] | Tuple[]): void; sendFilt(filt: any): void; sendPayload(payload: Payload[] | Payload): void; createEndpointObservable(component: ComponentLifecycleEventEmitter, filter: IPayloadFilt, processLatestOnly?: boolean): Observable<Payload>; createEndpoint(component: ComponentLifecycleEventEmitter, filter: IPayloadFilt, processLatestOnly?: boolean): PayloadEndpoint; createTupleLoader(component: ComponentLifecycleEventEmitter, filterUpdateCallable: IFilterUpdateCallable | IPayloadFilt): TupleLoader; }