• Takes EventSource and creates an observable from it.

    Deprecated

    Use fromEventSource from rx-event-source package instead.

    Example

    const sse = new EventSource(url, configuration);
    return fromEventSource(sse).pipe(
    finalize(() => {
    // Make sure the EventSource is closed once not needed.
    sse.close();
    }),
    );

    Type Parameters

    • TData = unknown

    Parameters

    Returns Observable<TData>

Generated using TypeDoc