UNPKG

@forestadmin/forestadmin-client

Version:

This package contains the logic to use the ForestAdmin API inside an agent.

19 lines 777 B
import { BaseEventsSubscriptionService, RefreshEventsHandlerService } from './types'; import { ForestAdminClientOptionsWithDefaults } from '../types'; export default class EventsSubscriptionService implements BaseEventsSubscriptionService { private readonly options; private readonly refreshEventsHandlerService; private eventSource; private heartBeatTimeout; constructor(options: ForestAdminClientOptionsWithDefaults, refreshEventsHandlerService: RefreshEventsHandlerService); private detectBuffering; subscribeEvents(): Promise<void>; /** * Close the current EventSource */ close(): void; private handleSeverEventRefreshRenderings; private onEventError; private onEventOpenAgain; } //# sourceMappingURL=index.d.ts.map