isPexRecvEnabled method
inherited
Checks whether accepting peers discovered on the peer exchange is enabled.
Implementation
Future<bool> isPexRecvEnabled(
) async {
final request = RequestSessionIsPexRecvEnabled(
);
final response = await client.invoke(request);
switch (response) {
case ResponseBool(value: final value): return value;
default: throw UnexpectedResponse();
}
}