adding readableTimestamp to messages
This commit is contained in:
parent
8458430989
commit
babde932e7
1
app.js
1
app.js
@ -303,6 +303,7 @@ function sendMessage(e) {
|
||||
topic: b4a.toString(currentRoom.topic, 'hex'),
|
||||
peers: [...swarm.connections].map(peer => peer.remotePublicKey.toString('hex')),
|
||||
timestamp: Date.now(),
|
||||
readableTimestamp: new Date().toLocaleString(), // Added human-readable timestamp
|
||||
});
|
||||
|
||||
const peers = [...swarm.connections];
|
||||
|
Loading…
Reference in New Issue
Block a user