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

Update PUBSUB.md #201

Merged
merged 1 commit into from Jan 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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