Emit reconnect events, plus basic tests