ataraxia-hyperswarm
![Dependencies](https://david-dm.org/aholstenson/ataraxia/status.svg?path=packages/hyperswarm)
Hyperswarm transport for Ataraxia.
This transport discovers and connects to peers using a specific topic via the
public Internet using Hyperswarm.
Installation
npm install ataraxia-hyperswarm
Usage
Create a transport that will connect to and discover peers based on a specific
topic:
import { Network, AnonymousAuth } from 'ataraxia';
import { HyperswarmTransport } from 'ataraxia-hyperswarm';
const net = new Network({
name: 'name-of-your-app-or-network',
transports: [
new HyperswarmTransport({
topic: 'Unique Topic',
authentication: [
new AnonymousAuth()
]
})
]
});
await net.start();
API