Releases: centrifugal/centrifuge-java
0.4.2
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 theSubscription
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
What's Changed
- Add access to publication info field by @oleg-smith in #72
New Contributors
- @oleg-smith made their first contribution in #72
Full Changelog: 0.4.0...0.4.1
0.4.0
0.3.1
0.3.0
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
0.2.7
What's Changed
- Our errors inherit from
Throwable
, and now we callsuper()
in their constructors. This allows propagating exceptioncause
, 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
What's Changed
- Fix
unsubscribe
API – it used legacy format of the command sent to the server - Add overloaded
newSubscription
withSubscriptionOptions
support. This allows settingSubscription
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 sendConfigurationException
to connectiononError
handler.
New Contributors
- @PhilipDukhov made their first contribution in #53
Full Changelog: 0.2.5...0.2.6