ping static method

Option ping(
  1. bool enabled
)

Configures libp2p to enable/disable the Ping service.

Implementation

// ... (other static option methods)

static Option ping(bool enabled) {
  return (config) => config.withPing(enabled);
}