Releases: launchdarkly/okhttp-eventsource
Releases · launchdarkly/okhttp-eventsource
1.11.0
[1.11.0] - 2020-03-30
Added:
- New
EventSourcemethodrestart()allows the caller to force a stream connection retry even if no I/O error has happened, using the same backoff behavior that would be used for errors.
1.10.2
[1.10.2] - 2020-03-20
Changed:
- Updated OkHttp version to 3.12.10 (the latest version that still supports Java 7).
2.0.1
[2.0.1] - 2020-01-31
Fixed:
- A build problem caused the 2.0.0 release to have an incorrect
pom.xmlthat did not list any dependencies.
2.0.0
[2.0.0] - 2020-01-22
Added:
EventSource.Builder.lastEventId(replacesEventSource.setLastEventId).
Changed:
- This library now uses OkHttp 4.x and requires Java 8 or above.
- Configuration methods that previously specified a duration in milliseconds now use the
Durationclass.
Removed:
- In
EventSource:setHttpUrl,setLastEventId,setMaxReconnectTime,setReconnectionTime,setUri(these can only be set in the builder).
1.10.1
1.10.0
[1.10.0] - 2019-08-01
Added:
EventSource.Builder.clientBuilderActions()allows you to modify the OkHttp client options in any way, such as customizing TLS behavior or any other methods supported byOkHttpClient.Builder.- The CI tests now include end-to-end tests against an embedded HTTP server.
1.9.1
1.9.0
[1.9.0] - 2018-12-12
Added:
- The
requestTransformeroption allows you to customize the outgoing request in any way you like. (#28) - It is now possible to specify the endpoint as either a
URIor an OkHttpHttpUrl. (#29) - The
backoffResetThresholdMsoption controls the new backoff behavior described below. - Added Javadoc comments for all public members.
Changed:
- The exponential backoff behavior when a stream connection fails has changed as follows. Previously, the backoff delay would increase for each attempt if the connection could not be made at all, or if a read timeout happened; but if a connection was made and then an error (other than a timeout) occurred, the delay would be reset to the minimum value. Now, the delay is only reset if a stream connection is made and remains open for at least
backoffResetThresholdMsmilliseconds. The default for this value is one minute (60000).
1.8.0
[1.8.0] - 2018-04-04
Added:
- Added maxReconnectTimeMs(long) method to EventSource.Builder to override the default maximum reconnect time of 30 seconds