GraphReFlyTS

API Reference

fromSSEWithOptions()

Emit server-sent events using a caller-supplied request object.

Import

import { fromSSEWithOptions } from "@graphrefly/ts/sources";

Signature

function fromSSEWithOptions(request: SseRequest): Operator<never, SseEvent>

Parameters

ParameterTypeDescription
requestSseRequestSSE request details.

Returns

A source operator that emits each SSE event.

Example

fromSSEWithOptions({ url: "https://example.com/events" });

Source

packages/ts/src/graph/sources.ts