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

Commit

Permalink
Update PUBSUB.md (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Bell authored and daviddias committed Jan 13, 2018
1 parent 79b368d commit 41eeba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SPEC/PUBSUB.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If no `callback` is passed, a [promise][] is returned.
const topic = 'fruit-of-the-day'

const receiveMsg = (msg) => {
console.log(msg.toString())
console.log(msg.data.toString())
}

ipfs.pubsub.subscribe(topic, receiveMsg)
Expand Down

0 comments on commit 41eeba2

Please sign in to comment.