Hyperswarm transport for Network that discovers and connects to peers using a specific topic via the public Internet using Hyperswarm.
import { Network, AnonymousAuth } from 'ataraxia';import { HyperswarmTransport } from 'ataraxia-hyperswarm';// Setup a network over Hyperswarmconst net = new Network({ name: 'name-of-your-app-or-network', transports: [ new HyperswarmTransport({ // Topic used to find peers topic: 'Unique Topic', // Setup anonymous authentication authentication: [ new AnonymousAuth() ] }) ]});// Join the networkawait net.join();
Generated using TypeDoc
Hyperswarm transport for Network that discovers and connects to peers using a specific topic via the public Internet using Hyperswarm.