invokeSSE
fun invokeSSE(requestOverride: HttpRequestBuilder.() -> Unit = {}): Flow<FunctionServerSentEvent>(source)
Invokes the edge function that returns Server-Sent Events (SSE) and returns a Flow of FunctionServerSentEvent.
For line-by-line text streaming (e.g. SSE), each event provides access to data, event, and a decodeAs method for deserialization.
Parameters
requestOverride
Overrides the HTTP request
Throws
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues