UNPKG

@sixbell-telco/sdk

Version:

A collection of reusable components designed for use in Sixbell Telco Angular projects

16 lines (15 loc) 670 B
import type { Observable } from 'rxjs'; import type { RuntimeUpdateAdapterOptions, RuntimeUpdateEvent, RuntimeUpdateSource } from './types'; export type RuntimeUpdateHandler = (event: RuntimeUpdateEvent, source: RuntimeUpdateSource) => void; export declare class RuntimeUpdateAdapter { private readonly handler; private eventSource?; private streamSubscription?; constructor(handler: RuntimeUpdateHandler); connectSse(url: string, options: RuntimeUpdateAdapterOptions): void; connectStream(stream: Observable<RuntimeUpdateEvent>): void; disconnect(): void; private disconnectSse; private disconnectStream; private parseMessage; }