supportsProtocols abstract method

Future<List<ProtocolID>> supportsProtocols(
  1. PeerId id,
  2. List<ProtocolID> protocols
)

SupportsProtocols returns the set of protocols the peer supports from among the given protocols. If the returned error is not null, the result is indeterminate.

Implementation

Future<List<ProtocolID>> supportsProtocols(PeerId id, List<ProtocolID> protocols);