fromSSEWithOptions()
Emit server-sent events using a caller-supplied request object.
Import
Section titled “Import”import { fromSSEWithOptions } from "@graphrefly/ts/sources";Signature
Section titled “Signature”function fromSSEWithOptions(request: SseRequest): Operator<never, SseEvent>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
request | SseRequest | SSE request details. |
Returns
Section titled “Returns”A source operator that emits each SSE event.
Example
Section titled “Example”fromSSEWithOptions({ url: "https://example.com/events" });Source
Section titled “Source”packages/ts/src/graph/sources.ts