mirror of https://github.com/waku-org/js-waku.git
Show payload as utf8 usage
This commit is contained in:
parent
7c715d8fa7
commit
3b71fd0b26
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue