withUserAgent method

Future<void> withUserAgent(
  1. String agent
)

Configures libp2p to use the given user agent.

Implementation

Future<void> withUserAgent(String agent) async {
  userAgent = agent;
}