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:
https://github.com/square/okhttp/blob/75b9c267744cdd2e8b222d247052748ff0954304/okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt#L127-L129
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:
https://github.com/square/okhttp/blob/75b9c267744cdd2e8b222d247052748ff0954304/okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt#L127-L129