Documentation
    Preparing search index...

    Type Alias ConnectionManagerOptions

    type ConnectionManagerOptions = {
        dialCooldown: number;
        enableAutoRecovery: boolean;
        failedDialCooldown: number;
        maxBootstrapPeers: number;
        maxConnections: number;
        maxDialingPeers: number;
        pingKeepAlive: number;
        relayKeepAlive: number;
    }
    Index

    Properties

    dialCooldown: number

    Time to wait before dialing a peer again.

    10 seconds
    
    enableAutoRecovery: boolean

    Enable auto recovery of connections if has not enough:

    • bootstrap peers
    • LightPush and Filter peers
    • number of connected peers
    • dial known peers on reconnect to Internet
    true
    
    failedDialCooldown: number

    Time to wait before dialing failed peers again.

    60 seconds
    
    maxBootstrapPeers: 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).

    3
    
    maxConnections: number

    Max number of connections allowed to be connected to.

    10
    
    maxDialingPeers: number

    Max number of peers to dial at once.

    3
    
    pingKeepAlive: number

    Keep alive libp2p pings interval in seconds.

    300 seconds
    
    relayKeepAlive: number

    Gossip sub specific keep alive interval in seconds.

    300 seconds