Options
All
  • Public
  • Public/Protected
  • All
Menu

Discovery of peers using mDNS and DNS-SD on the local network. Will announce using the name of the network.

This discovery is intended to be used with {@link TCPBasedTransport}.

Example:

import { Network, AnonymousAuth } from 'ataraxia';
import { TCPTransport, TCPPeerMDNSDiscovery } from 'ataraxia-tcp';

const net = new Network({
name: 'ataraxia-example',

transports: [
new TCPTransport({
discovery: new TCPPeerMDNSDiscovery(),

authentication: [
new AnonymousAuth()
]
})
]
});

Hierarchy

  • TCPPeerMDNSDiscovery

Implements

Index

Constructors

constructor

Methods

newDiscovery

publish

Generated using TypeDoc