Skip to main content
Module

x/earthstar/src/entries/npm.ts>DiscoveryLAN

Storage for private, distributed, offline-first applications.
Latest
class DiscoveryLAN
implements DiscoveryService
import { DiscoveryLAN } from "https://deno.land/x/earthstar@v10.2.2/src/entries/npm.ts";

A discovery service for finding peers on the local network, to be used with Peer.discover.

Constructors

new
DiscoveryLAN(opts: DiscoveryLANOpts)

Properties

private
abortController: AbortController
private
eventQueue: AsyncQueue<DiscoveryServiceEvent>
private
multicastInterface: MulticastInterface
private
serviceNames: Map<string, string>
private
sessions: Map<string, LANSession>
private
tcpProvider: TcpProvider
readonly
events