Show payload as utf8 usage

This commit is contained in:
Franck Royer 2021-07-28 13:21:55 +10:00
parent 7c715d8fa7
commit 3b71fd0b26
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ const nodes = await getStatusFleetNodes();
await Promise.all(nodes.map((addr) => waku.dial(addr)));
const processIncomingMessage = (wakuMessage) => {
console.log('Message Received', wakuMessage);
console.log(`Message Received: ${wakuMessage.payloadAsUtf8}`);
};
waku.relay.addObserver(processIncomingMessage, ['/relay-guide/1/chat/proto']);