I want to build a mobile dapp with GUN. The idea is a LAN-first sync strategy, so if the device is on a specific LAN environment, it would try to connect to peers on that local network. But if the device is not on that specific local network, the app would connect to peers discovered through a relay deployed on the internet. How would I develop this, two relays ? One on the internet and one on the local network ?
I want to build a mobile dapp with GUN. The idea is a LAN-first sync strategy, so if the device is on a specific LAN environment, it would try to connect to peers on that local network. But if the device is not on that specific local network, the app would connect to peers discovered through a relay deployed on the internet. How would I develop this, two relays ? One on the internet and one on the local network ?