Add reconnecting event and relevant test
Reconnecting event is now emitted by the socket
Merge master and update test