getRemoteListenerAddrs method
- String host
inherited
Returns the listener addresses of the specified remote Ouisync instance. Works only if the remote control API is enabled on the remote instance. Typically used with cache servers.
Implementation
Future<List<String>> getRemoteListenerAddrs(
String host,
) async {
final request = RequestSessionGetRemoteListenerAddrs(
host: host,
);
final response = await client.invoke(request);
switch (response) {
case ResponsePeerAddrs(value: final value): return value;
default: throw UnexpectedResponse();
}
}