Skip to content
PACKAGES

fromSSEWithOptions()

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

import { fromSSEWithOptions } from "@graphrefly/ts/sources";
function fromSSEWithOptions(request: SseRequest): Operator<never, SseEvent>
ParameterTypeDescription
requestSseRequestSSE request details.

A source operator that emits each SSE event.

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

packages/ts/src/graph/sources.ts