Skip to content

basalt / http/src / driveSse

Function: driveSse() ​

> driveSse(producer, sink): Promise<void>

Defined in: http/src/sse.ts:127

Drive a producer against a sink: exposes an SseStream to the producer, relays client disconnects, and ends the sink when the producer finishes. Shared by every adapter so behaviour is identical.

Parameters ​

producer ​

SseProducer

sink ​

SseSink

Returns ​

Promise<void>

Released under the MIT License.