setProtocols abstract method

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

SetProtocols sets the protocols for the given peer (replacing any previously stored protocols).

Implementation

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