adding peers to messages
This commit is contained in:
parent
1c85c78e4c
commit
8458430989
1
app.js
1
app.js
@ -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(),
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user