Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TCPPeerDiscovery

Discovery for addresses of TCP peers.

Hierarchy

  • TCPPeerDiscovery

Implemented by

Index

Methods

Optional newDiscovery

  • Create a discovery that will return peers to connect to.

    Parameters

    Returns undefined | ServiceDiscovery<MultiAddressService>

    instance of ServiceDiscovery or undefined if no discovery was started

Optional publish

  • Optional function used to publish information about the TCP transport so a discovery can see it.

    Parameters

    Returns undefined | ServicePublisher

    instance of ServicePublisher or undefined if service was not published

Generated using TypeDoc