Adding reconnect events to socket.io.