File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 38
38
"homepage" : " https://github.com/libp2p/js-libp2p" ,
39
39
"dependencies" : {
40
40
"async" : " ^2.6.0" ,
41
+ "libp2p-connection-manager" : " ^0.1.0" ,
41
42
"libp2p-floodsub" : " ^0.15.0" ,
42
43
"libp2p-ping" : " ~0.7.0" ,
43
44
"libp2p-switch" : " ~0.39.0" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const PeerBook = require('peer-book')
11
11
const Switch = require ( 'libp2p-switch' )
12
12
const Ping = require ( 'libp2p-ping' )
13
13
const WebSockets = require ( 'libp2p-websockets' )
14
+ const ConnectionManager = require ( 'libp2p-connection-manager' )
14
15
15
16
const peerRouting = require ( './peer-routing' )
16
17
const contentRouting = require ( './content-routing' )
@@ -37,6 +38,7 @@ class Node extends EventEmitter {
37
38
38
39
this . switch = new Switch ( this . peerInfo , this . peerBook , _options . switch )
39
40
this . stats = this . switch . stats
41
+ this . connectionManager = new ConnectionManager ( this , _options . connectionManager )
40
42
41
43
// Attach stream multiplexers
42
44
if ( this . modules . connection && this . modules . connection . muxer ) {
You can’t perform that action at this time.
0 commit comments