Class Peer

Constructors

  • Parameters

    • sendFunc: (msg: Uint8Array) => void
    • closeFunc: () => void = noOp

    Returns Peer

Properties

hasMap?: ChainTracker
ready: Promise<Peer>

Methods

  • Sends a bundle if we've received a greeting and our internal recordkeeping indicates that the peer could use this particular bundle (but ensures that we're not sending bundles that would cause gaps in the peer's chain.)

    Parameters

    Returns void