-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace default DHT nodes w/ Trac ones #26
Comments
Example usage with new DHT servers on google cloud: export default class TracManager {
/**
* Creates an instance of TracManager.
* Sets up Corestore and Hyperswarm and prepares for data synchronization.
*/
/**
* @property {TapProtocol} tapProtocol - Instance of TapProtocol to manage TAP interactions and data streams.
*/
tapProtocol;
/**
* @property {RestModule} restServer - Instance of RestModule for REST API access.
*/
restServer;
constructor() {
this.isConnected = false;
this.store = new Corestore("./tapstore");
this.dht = new HyperDHT({
// Optionally overwrite the default bootstrap servers, just need to be an array of any known dht node(s)
// Defaults to ['node1.hyperdht.org:49737', 'node2.hyperdht.org:49737', 'node3.hyperdht.org:49737']
bootstrap: ['34.69.114.195:34481', '34.141.187.40:38126', '34.126.94.90:33995']
});
this.swarm = new Hyperswarm({dht: this.dht});
this.bee = null;
this.tapProtocol = new TapProtocol(this);
goodbye(() => {
this.swarm.destroy();
});
} |
us-central started @ 34.69.114.195:34481 |
europe-west started @ 34.141.187.40:38126 |
asia-southeast started @ 34.126.94.90:33995 (note that all three ports changed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace default DHT nodes w/ Trac ones and benchmark the connectivity between nodes in comparison to the built-in ones.
The text was updated successfully, but these errors were encountered: