Skip to content

Commit

Permalink
changed filter to "topic"
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Jan 28, 2015
1 parent 51d3174 commit 5229944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Whisper-Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var replyWatch = shh.watch({
"topic": [ web3.fromAscii(appName), myIdentity ],
"to": myIdentity
});
// could be "filter": [ web3.fromAscii(appName), null ] if we wanted to filter all such
// could be "topic": [ web3.fromAscii(appName), null ] if we wanted to filter all such
// messages for this app, but we'd be unable to read the contents.

replyWatch.arrived(function(m)
Expand All @@ -27,7 +27,7 @@ replyWatch.arrived(function(m)
console.log("Reply from " + web3.toAscii(m.payload) + " whose address is " + m.from;
});

var broadcastWatch = shh.watch({ "filter": [ web3.fromAscii(appName) ] });
var broadcastWatch = shh.watch({ "topic": [ web3.fromAscii(appName) ] });
broadcastWatch.arrived(function(m)
{
if (m.from != myIdentity)
Expand Down

0 comments on commit 5229944

Please sign in to comment.