Create a discovery that will return peers to connect to.
instance of ServiceDiscovery
or undefined
if no discovery was
started
Optional function used to publish information about the TCP transport so a discovery can see it.
instance of ServicePublisher
or undefined
if service was not
published
Generated using TypeDoc
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: