From 29e33f6098fb39ef6908bf65accedabdf7fb2481 Mon Sep 17 00:00:00 2001 From: Ryan Bell Date: Fri, 12 Jan 2018 19:18:14 -0800 Subject: [PATCH] Update PUBSUB.md --- SPEC/PUBSUB.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)