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

debug

parent 74a8dc13
Pipeline #16352 passed with stages
in 57 seconds
......@@ -26,6 +26,7 @@ const socket = dgram
// from client
const message: Hello = JSON.parse(msg.toString());
assert(message.id);
console.log(message.id);
const peer = Router.all.find(p => p.id === message.id);
// assert(peer && rinfo.address === `10.200.${self.id}.${peer.id}` && rinfo.port === config.port);
peer.onMessage(message);
......
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