Skip to content

Releases: launchdarkly/eventsource

1.4.0

25 Mar 22:54
Compare
Choose a tag to compare

[1.4.0] - 2020-03-25

Added:

  • New option StreamOptionErrorHandler provides an alternate way to receive errors and control how Stream behaves after an error.
  • New Stream method Restart() provides a way to make the stream reconnect at any time even if it has not detected an error, using the same retry semantics (backoff, jitter, etc.) that have already been configured.

1.3.0

24 Mar 18:05
c02d5a3
Compare
Choose a tag to compare

[1.3.0] - 2020-03-24

Added:

  • New option StreamOptionUseBackoff allows Stream to be configured to use exponential backoff for reconnections. There was existing logic for exponential backoff, but it was not working, so until now the retry delay was always the same; for backward compatibility with that behavior, the default is still to not use backoff.
  • The new option StreamOptionRetryResetInterval can be used in conjunction with StreamOptionUseBackoff to determine when, if ever, the retry delay can be reset to its initial value rather than continuing to decrease.
  • New option StreamOptionUseJitter tells Stream to subtract a pseudo-random amount from the retry delay.
  • New option StreamOptionCanRetryFirstConnection tells Stream that it can retry the initial connection attempt. Previously, a failed initial connection would be considered a permanent failure.

1.2.0

17 Jun 22:44
6b83703
Compare
Choose a tag to compare

[1.2.0] - 2019-06-17

Added:

  • NewDecoderWithOptions allows creating a Decoder with non-default settings; currently the only such setting is DecoderOptionReadTimeout. Normally you will not need to create a Decoder directly; it is done automatically by Stream.

Fixed:

  • Reverted an unintentional change in v1.1.0 to the signature of the exported function NewDecoder.

1.1.0

03 Oct 17:24
b52bd57
Compare
Choose a tag to compare

[1.1.0] - 2018-10-03

Added:

  • It is now possible to specify a read timeout for a stream. If the stream does not receive new data (either events or comments) within this interval, it will emit an error and restart the connection.
  • New stream constructor methods SubscribeWithURL and SubscribeWithRequestAndOptions allow any combination of optional configuration parameters to be specified for a stream: read timeout, initial retry delay, last event ID, HTTP client, logger.

[1.0.1] - 2018-07-20

20 Jul 18:23
05e14ea
Compare
Choose a tag to compare

[1.0.1] - 2018-07-20
Fixed:

  • Avoid trying to to decode non-200 responses which was generating extra error messages

[1.0.0] - 2018-06-14- Add Close

14 Jun 20:01
5e2c13b
Compare
Choose a tag to compare

[1.0.0] - 2018-06-14
Added:

  • Added support for Close() Method