withTransport method

Future<void> withTransport(
  1. Transport transport
)

Configures libp2p to use the given transport.

Implementation

Future<void> withTransport(Transport transport) async {
  transports.add(transport);
}