Skip to content

[1.2.1] - 2021-02-10

Compare
Choose a tag to compare
@gwhelanLD gwhelanLD released this 11 Feb 01:25
7c40ada

Added

  • SwiftLint configuration. Linting will be automatically run as part of the build if Mint is installed.
  • Support for building docs with jazzy. These docs are available through GitHub Pages.

Fixed

  • Reconnection backoff was always reset if the previous successful connection was at least backoffResetThreshold prior to the scheduling of a reconnection attempt. The connection backoff has been corrected to not reset after the first reconnection attempt until the next successful connection. Thanks to @tomasf for the PR (#14).
  • On an UnsuccessfulResponseError the configured connectionErrorHandler would be called twice, the second time with a URLError.cancelled error. Only if the second call returned ConnectionErrorAction.shutdown would the EventSource client actually shutdown. This has been corrected to only call the connectionErrorHandler once, and will shutdown the client if ConnectionErrorAction.shutdown is returned. Thanks to @tomasf for the PR (#13).
  • A race condition that could cause the EventSource client to restart after shutting down has been fixed.