ConnectionManagerOptions: {
    maxBootstrapPeersAllowed: number;
    maxDialAttemptsForPeer: number;
    maxParallelDials: number;
    pingKeepAlive: number;
    relayKeepAlive: number;
}

Type declaration

  • maxBootstrapPeersAllowed: number

    Max number of bootstrap peers allowed to be connected to initially. This is used to increase intention of dialing non-bootstrap peers, found using other discovery mechanisms (like Peer Exchange).

    Default

    1
    
  • maxDialAttemptsForPeer: number

    Number of attempts before a peer is considered non-dialable. This is used to not spam a peer with dial attempts when it is not dialable.

    Default

    3
    
  • maxParallelDials: number

    Max number of parallel dials allowed.

    Default

    3
    
  • pingKeepAlive: number

    Keep alive libp2p pings interval in seconds.

    Default

    300 seconds
    
  • relayKeepAlive: number

    Gossip sub specific keep alive interval in seconds.

    Default

    300 seconds