adding peers to messages

This commit is contained in:
Raven Scott 2024-06-09 04:07:24 -04:00
parent 1c85c78e4c
commit 8458430989

1
app.js
View File

@ -301,6 +301,7 @@ function sendMessage(e) {
message,
avatar: config.userAvatar,
topic: b4a.toString(currentRoom.topic, 'hex'),
peers: [...swarm.connections].map(peer => peer.remotePublicKey.toString('hex')),
timestamp: Date.now(),
});