Commit d597204 1 parent 28ffa0c commit d597204 Copy full SHA for d597204
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
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.0.2" ,
41
42
"libp2p-floodsub" : " ^0.15.0" ,
42
43
"libp2p-ping" : " ~0.8.0" ,
43
44
"libp2p-switch" : " ~0.40.4" ,
45
+ "libp2p-websockets" : " ^0.12.0" ,
44
46
"mafmt" : " ^6.0.0" ,
45
47
"multiaddr" : " ^5.0.0" ,
46
48
"peer-book" : " ~0.8.0" ,
47
49
"peer-id" : " ~0.10.7" ,
48
- "libp2p-websockets" : " ^0.12.0" ,
49
50
"peer-info" : " ~0.14.1"
50
51
},
51
52
"devDependencies" : {
62
63
"libp2p-secio" : " ~0.10.0" ,
63
64
"libp2p-spdy" : " ~0.12.1" ,
64
65
"libp2p-tcp" : " ~0.12.0" ,
66
+ "libp2p-webrtc-star" : " ~0.15.0" ,
65
67
"libp2p-websocket-star" : " ~0.8.0" ,
66
68
"libp2p-websocket-star-rendezvous" : " ~0.2.3" ,
67
69
"lodash.times" : " ^4.3.2" ,
68
70
"pull-goodbye" : " 0.0.2" ,
69
71
"pull-serializer" : " ~0.3.2" ,
70
72
"pull-stream" : " ^3.6.8" ,
71
73
"sinon" : " ^5.0.7" ,
72
- "libp2p-webrtc-star" : " ~0.15.0" ,
73
74
"wrtc" : " 0.1.1"
74
75
},
75
76
"contributors" : [
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