Commit a0ac26a8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

debug

parent a7034142
Pipeline #15764 passed with stages
in 31 seconds
...@@ -42,7 +42,8 @@ setInterval(() => { ...@@ -42,7 +42,8 @@ setInterval(() => {
const message = JSON.stringify(self); const message = JSON.stringify(self);
for (const peer of peers) { for (const peer of peers) {
peer.update(self.time); peer.update(self.time);
socket.send(message, config.port, `10.200.${peer.id}.${self.id}`); console.log(`10.200.${peer.id}.${self.id}`)
socket.send(message, config.port, `10.200.${peer.id}.${self.id}`,console.log);
} }
server.update(socket, self, peers); server.update(socket, self, peers);
self.seq++; self.seq++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment