holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

Tweaks to 2 computer example #42

Closed 4c656554 closed 3 years ago

4c656554 commented 3 years ago
  1. I had async error so encapsulated in aync funcs
  2. Added await to node.connect func
  3. Added example write for a noiseSocket (took a while to find this)
  4. Added console log for receipt of data at first computer
  5. Log keys in hex format
mafintosh commented 3 years ago

Thanks! Added some comments