Issue #5471 was closed with the recommendation to reconnect to SSE streams in the application layer.
It would be helpful to expose the retry times in retry fields from the event stream, so that any reconnection attempts in a higher layer could respect the latest retry time if desired.
Currently, the retry times are parsed but they remain in the internal API only, terminating here:
|
override fun onRetryChange(timeMs: Long) { |
|
// Ignored. We do not auto-retry. |
|
} |
Issue #5471 was closed with the recommendation to reconnect to SSE streams in the application layer.
It would be helpful to expose the retry times in retry fields from the event stream, so that any reconnection attempts in a higher layer could respect the latest retry time if desired.
Currently, the retry times are parsed but they remain in the internal API only, terminating here:
okhttp/okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt
Lines 127 to 129 in 75b9c26