Releases: socketio/socket.io-client-java
Releases · socketio/socket.io-client-java
2.1.1
2.1.0
Bug Fixes
- ensure randomizationFactor is always between 0 and 1 (0cbf01e)
- prevent socket from reconnecting after middleware failure (95ecf22)
- increase the readTimeout value of the default OkHttpClient (fb531fa) (from
engine.io-client
)
Features
- emit with timeout (fca3b95)
This feature allows to send a packet and expect an acknowledgement from the server within the given delay.
Syntax:
socket.emit("hello", "world", new AckWithTimeout(5000) {
@Override
public void onTimeout() {
// ...
}
@Override
public void onSuccess(Object... args) {
// ...
}
});
- implement catch-all listeners (c7d50b8)
Syntax:
socket.onAnyIncoming(new Emitter.Listener() {
@Override
public void call(Object... args) {
// ...
}
});
socket.onAnyOutgoing(new Emitter.Listener() {
@Override
public void call(Object... args) {
// ...
}
});
Links
- Diff: 2.0.1...2.1.0
engine.io-client
version:2.1.0
(diff)
1.0.2
From the "1.x" branch.
Bug Fixes
- ensure buffered events are sent in order (8bd35da)
- ensure randomizationFactor is always between 0 and 1 (cb966d5)
- ensure the payload format is valid (8664499)
- fix usage with ws:// scheme (e57160a)
- increase the readTimeout value of the default OkHttpClient (2d87497) (from
engine.io-client
)
Links
- Diff: 1.0.1...1.0.2
engine.io-client
version:1.0.2
(diff)
2.0.1
2.0.0
This release is compatible with Socket.IO v3: https://socket.io/blog/socket-io-3-release/
Migration guide: http://socketio.github.io/socket.io-client-java/migrating_from_1_x.html
Features
Links
- Diff: 1.0.1...2.0.0
engine.io-client
version:2.0.0
(diff)