// Setup a network with anonymous authentication constnet = newNetwork({ name:'name-of-your-app-or-network', transports: [ newTCPTransport({ // Discover other peers on the same physical network discovery:newTCPPeerMDNSDiscovery(), // Use anonymous authentication authentication: [ newAnonymousAuth() ] }) ] });
TCP-based transport for Network, can discover and automatically establish encrypted connections over TCP.
Supports pluggable discoveries via TCPPeerDiscovery with a mDNS implementation in TCPPeerMDNSDiscovery that discover peers on the same local network.