diff --git a/SPEC/PUBSUB.md b/SPEC/PUBSUB.md index d27fa788d..71e80db1b 100644 --- a/SPEC/PUBSUB.md +++ b/SPEC/PUBSUB.md @@ -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)