Skip to content

Releases: centrifugal/centrifuge-java

0.2.3

04 Aug 04:54
b18dacd
Compare
Choose a tag to compare
  • Fix reconnect after onFailure #39
  • Avoid duplicate connecting event, better Exception msg if tokenGetter not set. Commit.
  • Fixes in example

0.2.2 - new SDK API

25 Jul 15:34
27374a9
Compare
Choose a tag to compare

Breaking changes

Releases 0.2.0 and 0.2.1 were broken - see #36

This release adopts a new iteration of Centrifugal protocol and a new iteration of API. Client now behaves according to the client SDK API specification. The work has been done according to Centrifugo v4 roadmap.

Check out Centrifugo v4 release post that covers the reasoning behind changes.

All the current core features of Centrifugal client protocol are now supported here.

New release only works with Centrifugo >= v4.0.0 and Centrifuge >= 0.25.0. See Centrifugo v4 migration guide for details about the changes in the ecosystem.

Note, that Centrifugo v4 supports clients working over the previous protocol iteration, so you can update Centrifugo to v4 without any changes on the client side (but you need to turn on use_client_protocol_v1_by_default option in the configuration of Centrifugo, see Centrifugo v4 migration guide for details).

0.2.0 - new SDK API

21 Jul 06:05
dd63003
Compare
Choose a tag to compare

This release was broken - see #36. Go to 0.2.2 which fixed the problem.

0.1.0

30 Aug 19:30
2b3c332
Compare
Choose a tag to compare

Update to work with Centrifuge >= v0.18.0 and Centrifugo v3.

Breaking change: client History API behavior changed – Centrifuge >= v0.18.0 and Centrifugo >= v3.0.0 won't return all publications in a stream by default, see Centrifuge v0.18.0 release notes or Centrifugo v3 migration guide for more information and workaround on server-side. History call now accepts options. Example on how to mimic previous behavior:

HistoryOptions opts = new HistoryOptions.Builder().withLimit(-1).build();
subscription.history(opts, ...)

If you are using Centrifuge < v0.18.0 or Centrifugo v2 then default options will work the same way as before - i.e. return all publications in a history stream.

  • Protocol definitions updated to the latest version
  • Support for top-level presence, presenceStats and history methods
  • When working with Centrifugo v3 or Centrifuge >= v0.18.0 it's now possible to avoid using ?format=protobuf in connection URL. Client will negotiate Protobuf protocol with a server using WebSocket subprotocol mechanism (in request headers).
  • Add ClientInfo to PublishEvent and ServerPublishEvent #29

0.0.8

14 Jun 14:02
3bacdad
Compare
Choose a tag to compare
  • Add possibility to connect over proxy - #26

0.0.7

02 Jun 15:21
f167b77
Compare
Choose a tag to compare

Publish using openjdk v11, see #24

0.0.6

02 May 11:45
956b741
Compare
Choose a tag to compare
  • Support message recovery
  • Support server-side subscriptions
  • Migrate to protobuf-javalite
  • Pass exception to ErrorEvent
  • Print stack trace in case of connect error