SSE

fun HttpClientConfig<*>.SSE(config: SSEConfig.() -> Unit)

Installs the SSE plugin using the config as configuration.


Client Server-sent events plugin that allows you to establish an SSE connection to a server and receive Server-sent events from it.

val client = HttpClient {
install(SSE)
}
client.sse {
val event = incoming.receive()
}