It's as simple as that. 0.9.16 breaks once you hit your max reconnection tries. Instead of changing transports, it tries websocket one more time and does not respond to the failed attempt.
It's extremely easy to replicate:
- Set max reconnection attempts = 3 (or 2 or whatever).
- Add listeners to connect_failed and reconnect_failed.
- Connect the client to the server.
- Turn off the server (or turn off your internet).
- Wait until 3 reconnect attempts run out.
- See that it tries a 4th time on the same transport.
- It dies. It doesn't keep trying on a new transport and it doesn't trigger a reconnect_failed or connect_failed event.
This is a pretty big issue. If the client just dies and doesn't tell me, I can't properly handle things on my side.