That’s not rayfish handling that but the cloudflare DDNS you’re using that handles that. So yes, self hosted WG server handles that just as fast.
If you’re talking client-side, it will reconnect as fast as whatever internet connection you’re switching between allows it. For me it’s something like 3-5 seconds from disconnect to reconnect.