Skip to content

Releases: centrifugal/centrifuge-java

0.4.2

10 Oct 19:30
d0678bf
Compare
Choose a tag to compare

What's Changed

This release adds a delta compression support to the SDK. You can use .setDelta("fossil") when building options of Subscription. Many thanks to @itismoej for making it happen.

  • Add delta compression support by @itismoej in #74
  • Delta improvements and introducing since option (to set the starting StreamPosition for the Subscription to recover from) by @FZambia in #75
  • Bump protobuf-javalite version by @FZambia in #77

New Contributors

Full Changelog: 0.4.1...0.4.2

0.4.1

25 Oct 06:08
b2dc056
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.0...0.4.1

0.4.0

12 Oct 16:49
3971f02
Compare
Choose a tag to compare

What's Changed

  • Replace cfuture with minifuture by @vyndor in #70
  • Add HTTP response code to ErrorEvent by @vyndor in #69

New Contributors

Full Changelog: 0.3.1...0.4.0

0.3.1

10 Oct 04:25
2e7863c
Compare
Choose a tag to compare

What's Changed

  • Handle closed executor in WebSocket callbacks by @FZambia in #71

Full Changelog: 0.3.0...0.3.1

0.3.0

29 Jun 05:55
c3c2400
Compare
Choose a tag to compare

What's Changed

Breaking change! This release changes the semantics of working with connection tokens described in Centrifugo v5 release post.

Previously, returning an empty token string from ConnectionTokenGetter callback resulted in client disconnection with unauthorized reason.

Now returning an empty string from ConnectionTokenGetter is a valid scenario which won't result into disconnect on the client side. It's still possible to disconnect client by returning instance of a special UnauthorizedException from ConnectionTokenGetter.

And we are putting back SetToken method to the SDK – so it's now possible to reset the token to be empty upon user logout.

Full Changelog: 0.2.8...0.3.0

0.2.8

27 Apr 19:31
a06be3f
Compare
Choose a tag to compare
  • Handle disconnect push. This is not used at the moment - but is an enabler for the future development.

0.2.7

23 Feb 22:40
d8993bc
Compare
Choose a tag to compare

What's Changed

  • Our errors inherit from Throwable, and now we call super() in their constructors. This allows propagating exception cause, as the result the whole chain of exceptions is visible in error handler. #58
  • Disconnect gracefully from WebSocket, instead of calling ws.cancel(). By @PhilipDukhov in #56

Full Changelog: 0.2.6...0.2.7

0.2.6

12 Feb 07:39
446bb5c
Compare
Choose a tag to compare

What's Changed

  • Fix unsubscribe API – it used legacy format of the command sent to the server
  • Add overloaded newSubscription with SubscriptionOptions support. This allows setting Subscription options upon creation - such as subscription token, SubscriptionTokenGetter, and so on. See #53 by @PhilipDukhov
  • Diffirentiate bad protocol disconnects for better understanding where those came from. See #50
  • If token expires but ConnectionTokenGetter not set – then we issue unauthorized disconnect instead of bad protocol disconnect, and send ConfigurationException to connection onError handler.

New Contributors

Full Changelog: 0.2.5...0.2.6

0.2.5

28 Aug 21:32
bad9ada
Compare
Choose a tag to compare
  • Include consumer proguard rules #47 - this should provide ProGuard rules automatically when using centrifuge-java thus users of the library should not add rules manually in the application.
  • API compatibility check on CI #46

0.2.4

28 Aug 07:41
4b68ac6
Compare
Choose a tag to compare
  • Add ability to set custom DNS resolver for connecting to server #40

Also, several internal improvements (thanks to @ntoskrnl):

  • Use protobuf gradle plugin to generate Protocol.java #41
  • Refactor publishing to Maven Central #43
  • GitHub Actions for CI/CD: test and release #45