UNPKG

@launchdarkly/js-server-sdk-common

Version:
25 lines 803 B
import { EventSource, EventSourceInitDict } from '@launchdarkly/js-sdk-common'; export default class NullEventSource implements EventSource { handlers: Record<string, (event?: { data?: any; }) => void>; closed: boolean; url: string; options: EventSourceInitDict; constructor(url: string, options: EventSourceInitDict); onclose: (() => void) | undefined; onerror: (() => void) | undefined; onopen: (() => void) | undefined; onretrying: ((e: { delayMillis: number; }) => void) | undefined; addEventListener(type: string, listener: (event?: { data?: any; }) => void): void; close(): void; simulateError(error: { status: number; message: string; }): void; } //# sourceMappingURL=NullEventSource.d.ts.map