Daniel Pitts
10/20/2024, 4:36 AMAleksei Tirman [JB]
10/21/2024, 7:45 AMSSEClientException
and observe the server response on exception. Here is an example:
try {
client.sse(host = "0.0.0.0", port = 8092, path = "/400") {
incoming.collect { event ->
println(event)
}
}
} catch (e: SSEClientException) {
println(e.response?.status)
}
Daniel Pitts
10/21/2024, 1:34 PM