Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 41eeba2

Browse files
Ryan Belldaviddias
Ryan Bell
authored andcommitted
Update PUBSUB.md (#201)
1 parent 79b368d commit 41eeba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SPEC/PUBSUB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If no `callback` is passed, a [promise][] is returned.
2525
const topic = 'fruit-of-the-day'
2626

2727
const receiveMsg = (msg) => {
28-
console.log(msg.toString())
28+
console.log(msg.data.toString())
2929
}
3030

3131
ipfs.pubsub.subscribe(topic, receiveMsg)

0 commit comments

Comments
 (0)