@libp2p/interface-internal
Advanced tools
Comparing version
@@ -8,3 +8,5 @@ import type { AbortOptions, PendingDial, Connection, MultiaddrConnection, PeerId, IsDialableOptions, OpenConnectionProgressEvents } from '@libp2p/interface'; | ||
* Connection requests with a higher priority will be executed before those | ||
* with a lower priority. (default: 50) | ||
* with a lower priority. | ||
* | ||
* @default 50 | ||
*/ | ||
@@ -15,3 +17,5 @@ priority?: number; | ||
* it will be returned instead of creating a new connection. Pass true here | ||
* to override that and dial a new connection anyway. (default: false) | ||
* to override that and dial a new connection anyway. | ||
* | ||
* @default false | ||
*/ | ||
@@ -18,0 +22,0 @@ force?: boolean; |
@@ -17,7 +17,11 @@ import type { Connection, Stream, Topology } from '@libp2p/interface'; | ||
/** | ||
* How many incoming streams can be open for this protocol at the same time on each connection (default: 32) | ||
* How many incoming streams can be open for this protocol at the same time on each connection | ||
* | ||
* @default 32 | ||
*/ | ||
maxInboundStreams?: number; | ||
/** | ||
* How many outgoing streams can be open for this protocol at the same time on each connection (default: 64) | ||
* How many outgoing streams can be open for this protocol at the same time on each connection | ||
* | ||
* @default 64 | ||
*/ | ||
@@ -24,0 +28,0 @@ maxOutboundStreams?: number; |
{ | ||
"name": "@libp2p/interface-internal", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Interfaces implemented by internal libp2p components", | ||
@@ -51,4 +51,4 @@ "license": "Apache-2.0 OR MIT", | ||
"dependencies": { | ||
"@libp2p/interface": "^2.1.0", | ||
"@libp2p/peer-collections": "^6.0.2", | ||
"@libp2p/interface": "^2.1.1", | ||
"@libp2p/peer-collections": "^6.0.3", | ||
"@multiformats/multiaddr": "^12.2.3", | ||
@@ -55,0 +55,0 @@ "progress-events": "^1.0.0", |
@@ -9,3 +9,5 @@ import type { AbortOptions, PendingDial, Connection, MultiaddrConnection, PeerId, IsDialableOptions, OpenConnectionProgressEvents } from '@libp2p/interface' | ||
* Connection requests with a higher priority will be executed before those | ||
* with a lower priority. (default: 50) | ||
* with a lower priority. | ||
* | ||
* @default 50 | ||
*/ | ||
@@ -17,3 +19,5 @@ priority?: number | ||
* it will be returned instead of creating a new connection. Pass true here | ||
* to override that and dial a new connection anyway. (default: false) | ||
* to override that and dial a new connection anyway. | ||
* | ||
* @default false | ||
*/ | ||
@@ -20,0 +24,0 @@ force?: boolean |
@@ -21,3 +21,5 @@ import type { Connection, Stream, Topology } from '@libp2p/interface' | ||
/** | ||
* How many incoming streams can be open for this protocol at the same time on each connection (default: 32) | ||
* How many incoming streams can be open for this protocol at the same time on each connection | ||
* | ||
* @default 32 | ||
*/ | ||
@@ -27,3 +29,5 @@ maxInboundStreams?: number | ||
/** | ||
* How many outgoing streams can be open for this protocol at the same time on each connection (default: 64) | ||
* How many outgoing streams can be open for this protocol at the same time on each connection | ||
* | ||
* @default 64 | ||
*/ | ||
@@ -30,0 +34,0 @@ maxOutboundStreams?: number |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31716
0.28%646
2.54%Updated