You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Libp2p enforces the DefaultConnectionManager for managing all connections. Whilst it's quite configurable, there are particular use cases in which it is a bit inflexible and a consumer may want to have complete control over the process of opening and closing connections as well as pruning and dialling peers. This could be enabled by passing a module which implements the connection-manager-interface to the Libp2p instance, otherwise it would default to the DefaultConnectionManager with the default config.
constlibp2p=awaitcreateLibp2p({transports: [tcp()],connectionManager: [myConnectionManager({maxConnections: Infinity,minConnections: 0,pollInterval: 2000// other configurations})]})
The text was updated successfully, but these errors were encountered:
Currently Libp2p enforces the
DefaultConnectionManager
for managing all connections. Whilst it's quite configurable, there are particular use cases in which it is a bit inflexible and a consumer may want to have complete control over the process of opening and closing connections as well as pruning and dialling peers. This could be enabled by passing a module which implements the connection-manager-interface to the Libp2p instance, otherwise it would default to theDefaultConnectionManager
with the default config.The text was updated successfully, but these errors were encountered: