This is just a demo… but generally the connection is very stable and if the device reboots or the WiFi disconnects, then once the server connection is reestablished everything carries on.
But one can get more advanced with maintaining non-connected operation and resonnection routines if required…