testing/transports/sse_transport.ts view source
(options: SseTransportOptions): Promise<SseTransport> import {create_sse_transport} from '@fuzdev/fuz_app/testing/transports/sse_transport.js'; Open a real-HTTP SSE stream pinned to options.base_url + sse_path.
Resolves once the response headers arrive and the body is a
text/event-stream; rejects if the connect is refused (non-2xx status,
wrong content type, missing body) so the test surfaces the real cause
rather than hanging.
options
returns
Promise<SseTransport> throws
Error- if the connect fails (status, content type, or no body).