userAgent static method

Option userAgent(
  1. String agent
)

Configures libp2p to use the given user agent.

Implementation

static Option userAgent(String agent) {
  return (config) => config.withUserAgent(agent);
}