Fork me on GitHub

History

Version Release date
2.1.1 July 2024
1.0.2 (from the 1.x branch) July 2022
2.1.0 July 2022
2.0.1 April 2021
2.0.0 December 2020
1.0.1 December 2020

Release notes

2.1.1 (2024-07-10)

Bug Fixes

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

1.0.2 (2022-07-11)

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)

2.1.0 (2022-07-10)

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) {
        // ...
    }
});

2.0.1 (2021-04-27)

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)

2.0.0 (2020-12-14)

Features

1.0.1 (2020-12-10)

Bug Fixes

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