Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/earthstar/src/discovery/types.ts>DiscoveryEvent

Storage for private, distributed, offline-first applications.
Go to Latest
type alias DiscoveryEvent
import { type DiscoveryEvent } from "https://deno.land/x/earthstar@v10.2.0/src/discovery/types.ts";

A discovery service event, indicating:

  • That a new peer has been discovered
  • That another peer discovered us and initiated sync
  • That a peer which had been previously discovered has exited.
definition: { kind: "PEER_DISCOVERED"; description: string; sync: (opts?: { syncContinuously: boolean; }) => Promise<Syncer<unknown, unknown>>; } | { kind: "PEER_INITIATED_SYNC"; description: string; syncer: Syncer<unknown, unknown>; } | { kind: "PEER_EXITED"; description: string; }