This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto') | |
const Swarm = require('discovery-swarm') | |
const defaults = require('dat-swarm-defaults') | |
const getPort = require('get-port') | |
const readline = require('readline') | |
/** | |
* Here we will save our TCP peer connections | |
* using the peer id as key: { peer_id: TCP_Connection } | |
*/ |