Skip to content

Releases: socketio/socket.io-client-java

2.1.1

10 Jul 10:24
0e11f2f
Compare
Choose a tag to compare

Bug Fixes

  • discard acknowledgements upon disconnection (54645ec)
  • make sendBuffer thread safe (#769) (b00ae8e)

Links

2.1.0

10 Jul 21:35
abe22c3
Compare
Choose a tag to compare

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

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

1.0.2

10 Jul 22:39
812980d
Compare
Choose a tag to compare

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

2.0.1

26 Apr 22:38
b46da92
Compare
Choose a tag to compare

Bug Fixes

  • fix usage with ws:// scheme (67fd5f3)
  • ensure buffered events are sent in order (4885e7d)
  • ensure the payload format is valid (e8ffe9d)
  • emit a CONNECT_ERROR event upon connection failure (d324e7f)

Links

2.0.0

15 Dec 14:19
75d7bb5
Compare
Choose a tag to compare

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

1.0.1

15 Dec 14:17
89ef9d0
Compare
Choose a tag to compare

Bug Fixes

  • don't process socket.connect() if we are already re-connecting (#577) (54b7311)
  • handle case where URI.getHost() returns null (#484) (567372e)

Links