Getting informed of network stack reset

So I’m having a problem with long running UDP process on a bunch of photons.

What I believe is happening is when the photon reconnects to the cloud the network stack is getting reset as hinted at by the SYSTEM_FLAG_RESET_NETWORK_ON_CLOUD_ERRORS system flag.

I’m not keen on turning that flag off as the cloud connection reliability is very important to me.

But it would be great to know when this is happening so we can restart the UDP connection in our code.

Reading through various TCP and UDP posts on the forum there seems to be a long standing issue of connections not being maintained when the particle cloud connection resets.

Perhaps there could be a system event cloud_connections that increments for every reconnection to the cloud since boot.