Skip to content

Commit 34ec0a0

Browse files
committed
fix old public id refs
1 parent 4a6123a commit 34ec0a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ If the remote peer joins a channel you haven't opened, hypercore will call an op
3737
method if you specify it with the discovery key for that channel.
3838

3939
``` js
40-
var p = protocol(function (publicId) {
41-
// remote peer joined publicId but you haven't
40+
var p = protocol(function (discoveryKey) {
41+
// remote peer joined discoveryKey but you haven't
4242
// you can open the channel now if you want to join the channel
4343

4444
// open with corresponding key to join
@@ -157,7 +157,7 @@ var channel = p.open(someKey)
157157

158158
channel.on('handshake', function () {
159159
channel.on('ping', function (message) {
160-
console.log('received ping message')
160+
console.log('received ping message', message)
161161
})
162162

163163
channel.ping(Buffer('this is a ping message!'))

0 commit comments

Comments
 (0)