Scenario:
- server down
- on client:
socket = io.connect(host); socket.emit('event');
- server up
Now, nothing happens. There is no automatic reconnect attempt, even if the server has been started only seconds after running io.connect on the client.
A manual solution (workaround) could be based on repeatedly calling socket.socket.reconnect. On success, this also emits the above 'event'.
Given the current specification of the reconnect client option, this issue should be considered a feature request:
reconnect defaults to true
Should Socket.IO automatically reconnect when it detects a dropped connection or timeout.