Configures libp2p to use the given transport.
Future<void> withTransport(Transport transport) async { transports.add(transport); }