@libp2p/interface-internal 2.3.15 → 2.3.16-7eed3b40d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,6 +59,12 @@ export interface ConnectionManager {
|
|
|
59
59
|
* @returns The maximum connection limit.
|
|
60
60
|
*/
|
|
61
61
|
getMaxConnections(): number;
|
|
62
|
+
/**
|
|
63
|
+
* Update the maximum number of connections that are accepted - setting this
|
|
64
|
+
* to a smaller value than the current setting will cause connections to be
|
|
65
|
+
* pruned.
|
|
66
|
+
*/
|
|
67
|
+
setMaxConnections(maxConnections: number): void;
|
|
62
68
|
/**
|
|
63
69
|
* Open a connection to a remote peer
|
|
64
70
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-manager.d.ts","sourceRoot":"","sources":["../../src/connection-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAC5J,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,eAAe,CAAC,4BAA4B,CAAC;IACxG;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,EAAE,C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": "2.3.16-7eed3b40d",
|
|
4
4
|
"description": "Interfaces implemented by internal libp2p components",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"build": "aegir build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@libp2p/interface": "
|
|
45
|
-
"@libp2p/peer-collections": "
|
|
46
|
-
"@multiformats/multiaddr": "^12.4.
|
|
44
|
+
"@libp2p/interface": "2.10.4-7eed3b40d",
|
|
45
|
+
"@libp2p/peer-collections": "6.0.32-7eed3b40d",
|
|
46
|
+
"@multiformats/multiaddr": "^12.4.4",
|
|
47
47
|
"progress-events": "^1.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
@@ -66,6 +66,13 @@ export interface ConnectionManager {
|
|
|
66
66
|
*/
|
|
67
67
|
getMaxConnections(): number
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Update the maximum number of connections that are accepted - setting this
|
|
71
|
+
* to a smaller value than the current setting will cause connections to be
|
|
72
|
+
* pruned.
|
|
73
|
+
*/
|
|
74
|
+
setMaxConnections(maxConnections: number): void
|
|
75
|
+
|
|
69
76
|
/**
|
|
70
77
|
* Open a connection to a remote peer
|
|
71
78
|
*
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AddressManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.AddressManager.html",
|
|
3
|
-
"ConfirmAddressOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.ConfirmAddressOptions.html",
|
|
4
|
-
"ConnectionManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.ConnectionManager.html",
|
|
5
|
-
"NodeAddress": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.NodeAddress.html",
|
|
6
|
-
"OpenConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.OpenConnectionOptions.html",
|
|
7
|
-
"RandomWalk": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.RandomWalk.html",
|
|
8
|
-
"Registrar": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.Registrar.html",
|
|
9
|
-
"TransportManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.TransportManager.html",
|
|
10
|
-
"TransportManagerDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface-internal.TransportManagerDialOptions.html",
|
|
11
|
-
"AddressType": "https://libp2p.github.io/js-libp2p/types/_libp2p_interface-internal.AddressType.html"
|
|
12
|
-
}
|