diff --git a/browser/libs/chat.js b/browser/libs/chat.js index a978d56..74096a4 100644 --- a/browser/libs/chat.js +++ b/browser/libs/chat.js @@ -107,7 +107,13 @@ class Chat extends EventEmitter { // XXX: Might not always work... const text = String.fromCharCode(...msg.payload) console.info("WakuMessage: ", msg.contentTopic, text) + + this.emit('message', { + from: "Unknown", + data: text + }) } + else { //TODO Figure out how to re-enable / remove wrt chat2 example const request = Request.decode(message.data)