File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ js-libp2p-pubsub
4
4
[ ![ ] ( https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square )] ( http://ipn.io )
5
5
[ ![ ] ( https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square )] ( http://libp2p.io/ )
6
6
[ ![ ] ( https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square )] ( http://webchat.freenode.net/?channels=%23ipfs )
7
+ [ ![ Discourse posts] ( https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg )] ( https://discuss.libp2p.io )
7
8
[ ![ Coverage Status] ( https://coveralls.io/repos/github/libp2p/js-libp2p-pubsub/badge.svg?branch=master )] ( https://coveralls.io/github/libp2p/js-libp2p-pubsub?branch=master )
8
9
[ ![ Travis CI] ( https://travis-ci.org/libp2p/js-libp2p-pubsub.svg?branch=master )] ( https://travis-ci.org/libp2p/js-libp2p-pubsub )
9
10
[ ![ Circle CI] ( https://circleci.com/gh/libp2p/js-libp2p-pubsub.svg?style=svg )] ( https://circleci.com/gh/libp2p/js-libp2p-pubsub )
Original file line number Diff line number Diff line change 41
41
},
42
42
"homepage" : " https://github.com/libp2p/js-libp2p-pubsub#readme" ,
43
43
"devDependencies" : {
44
- "aegir" : " ^18.0.3 " ,
44
+ "aegir" : " ^18.2.1 " ,
45
45
"benchmark" : " ^2.1.4" ,
46
46
"chai" : " ^4.2.0" ,
47
47
"chai-spies" : " ^1.0.0" ,
48
48
"dirty-chai" : " ^2.0.1" ,
49
49
"libp2p" : " ~0.24.4" ,
50
- "libp2p-secio" : " ~0.11.0 " ,
51
- "libp2p-spdy" : " ~0.13.1 " ,
50
+ "libp2p-secio" : " ~0.11.1 " ,
51
+ "libp2p-spdy" : " ~0.13.3 " ,
52
52
"libp2p-tcp" : " ~0.13.0" ,
53
53
"lodash" : " ^4.17.11" ,
54
54
"peer-id" : " ~0.12.2" ,
55
55
"peer-info" : " ~0.15.1"
56
56
},
57
57
"dependencies" : {
58
- "async" : " ^2.6.1 " ,
58
+ "async" : " ^2.6.2 " ,
59
59
"bs58" : " ^4.0.1" ,
60
60
"debug" : " ^4.1.1" ,
61
61
"err-code" : " ^1.1.2" ,
62
- "length-prefixed-stream" : " ^1.6 .0" ,
62
+ "length-prefixed-stream" : " ^2.0 .0" ,
63
63
"libp2p-crypto" : " ^0.16.1" ,
64
64
"protons" : " ^1.0.1" ,
65
65
"pull-length-prefixed" : " ^1.3.1" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ message RPC {
6
6
7
7
message SubOpts {
8
8
optional bool subscribe = 1; // subscribe or unsubcribe
9
- optional string topicCID = 2;
9
+ optional string topicID = 2;
10
10
}
11
11
12
12
message Message {
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class Peer extends EventEmitter {
105
105
topics . forEach ( ( topic ) => {
106
106
subs . push ( {
107
107
subscribe : subscribe ,
108
- topicCID : topic
108
+ topicID : topic
109
109
} )
110
110
} )
111
111
@@ -153,9 +153,9 @@ class Peer extends EventEmitter {
153
153
updateSubscriptions ( changes ) {
154
154
changes . forEach ( ( subopt ) => {
155
155
if ( subopt . subscribe ) {
156
- this . topics . add ( subopt . topicCID )
156
+ this . topics . add ( subopt . topicID )
157
157
} else {
158
- this . topics . delete ( subopt . topicCID )
158
+ this . topics . delete ( subopt . topicID )
159
159
}
160
160
} )
161
161
}
You can’t perform that action at this time.
0 commit comments