feat(rln-js): add logs
This commit is contained in:
parent
ea9da4cf90
commit
b12222c531
|
@ -202,7 +202,9 @@
|
||||||
const timestamp = new Date();
|
const timestamp = new Date();
|
||||||
const msg = ProtoChatMessage.create({text, nick, timestamp: timestamp.valueOf()});
|
const msg = ProtoChatMessage.create({text, nick, timestamp: timestamp.valueOf()});
|
||||||
const payload = ProtoChatMessage.encode(msg).finish();
|
const payload = ProtoChatMessage.encode(msg).finish();
|
||||||
|
console.log("Sending message with proof...")
|
||||||
await node.lightPush.push(encoder, {payload, timestamp});
|
await node.lightPush.push(encoder, {payload, timestamp});
|
||||||
|
console.log("Message sent!")
|
||||||
textInput.value = null;
|
textInput.value = null;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue