setDhtRouters method
inherited
Changes the DHT routers (bootstrap nodes), rebootstraps the DHTs and restart any ongoing lookups. If this is not called, a default set of routers is used. Each router is specified as hostname + port or ip address + port.
Implementation
Future<void> setDhtRouters(
List<String> routers,
) async {
final request = RequestSessionSetDhtRouters(
routers: routers,
);
final response = await client.invoke(request);
switch (response) {
case ResponseUnit(): return;
default: throw UnexpectedResponse();
}
}