Skip to content

Latest commit

 

History

History
231 lines (158 loc) · 6.81 KB

History.md

File metadata and controls

231 lines (158 loc) · 6.81 KB

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-15

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)

1.0.0 / 2017-07-14

  • compatible with socket.io 2.0.x
  • update engine.io-client
  • custom encoder/decoder support
  • fix socket id

0.9.0 / 2017-07-11

  • compatible with socket.io 1.7.4
  • bump engine.io-client
  • send query on connect

0.8.3 / 2016-12-12

  • bump engine.io-client

0.8.2 / 2016-10-22

  • bump engine.io-client

0.8.1 / 2016-09-27

  • bump engine.io-client

0.8.0 / 2016-09-23

  • bump engine.io-client
  • README: fix typos [kylestev, lu-zero]
  • test: use TLSv1

0.7.0 / 2016-02-01

  • compatible with socket.io 1.4.5
  • bump engine.io-client
  • fix event type when emitting ack with binary data [cirocosta]
  • don't reuse same namespace connections
  • fix handling of disconnection while in opening state
  • add ping and pong events
  • improve cleanup on Manager

0.6.3 / 2015-12-23

  • bump engine.io-client.
  • fix back-off calculation
  • code quality improvements [civanyp]

0.6.2 / 2015-10-10

  • compatible with socket.io 1.3.7
  • bump engine.io-client
  • fix wrong reconnection state

0.6.1 / 2015-08-31

  • change package name to "io.socket"

0.6.0 / 2015-08-09

  • bump engine.io-client.

0.5.2 / 2015-06-28

  • make Socket.events protected [icapurro]
  • fix readyState check on Manager#open
  • change IO.socket(URI) not to throw URISyntaxException

0.5.1 / 2015-06-06

  • bump engine.io-client.
  • fix timeout option
  • fix NullPointerException on ack

0.5.0 / 2015-05-02

  • bump engine.io-client.
  • enhance parser decode [niqo01]
  • add a wrong event name check
  • add setDefaultHostnameVerifier method

0.4.2 / 2015-03-07

  • fix error on reconnection attemps

0.4.1 / 2015-02-08

  • bump engine.io-client.
  • fix program doesn't terminate when closing socket before eatablishing connection.

0.4.0 / 2015-01-26

  • compatible with socket.io 1.3.2
  • bump engine.io-client.
  • added Socket#id() pointing to session id
  • add exponential backoff with randomization
  • reset reconnection attempts state after a successul connection
  • fix binary arguments in emit with ack [AlfioEmanueleFresta]

0.3.0 / 2014-11-04

  • compatible with socket.io 1.2.0
  • bump engine.io-client.
  • fix reconnection after reconnecting manually
  • enable to stop reconnecting
  • enable to reconnect manually
  • add Socket#connected()