added resume on reconnect feature to demo example