Closed erlangparasu closed 3 years ago
thanks sir @yschimke :+1:
We should also cleanup
/**
* TODO description.
*
* No further calls to this listener will be made.
*/
open fun onClosed(eventSource: EventSource) {
}
hello sir.. other lib that provide auto retry: https://github.com/heremaps/oksse
hi, can we have this feature?
It's not currently in development, or confirmed on the near term roadmap. Sorry.
I don't think OkHttp should support this. We don't automatically reconnect any persistent or long-lived connection as doing so requires all kind of public API to control the policy. This should be implemented at the application layer (or at least a layer above OkHttp).
Seems like a sensible feature to add
See discussion including Last-Event-Id here
https://kaazing.com/kaazing.io/doc/understanding-server-sent-events/ https://www.html5rocks.com/en/tutorials/eventsource/basics/