iroh_net::test_utilsFunction run_relay_server
Source pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server)>
Available on test
or crate feature test-utils
only.
Expand description
Runs a relay server with STUN enabled suitable for tests.
The returned Url
is the url of the relay server in the returned RelayMap
.
When dropped, the returned Server
does will stop running.