Options
All
  • Public
  • Public/Protected
  • All
Menu

TCP based transport.

Hierarchy

Index

Constructors

constructor

Properties

Protected debug

debug: Debugger

Protected Readonly peers

peers: Set<Peer>

Accessors

onPeerConnect

  • get onPeerConnect(): Subscribable<this, [peer: Peer]>
  • Event for when a new peer is connected via this transport.

    Returns Subscribable<this, [peer: Peer]>

    Subscribable that can be used to register listeners

port

  • get port(): number

started

  • get started(): boolean

transportOptions

Methods

addManualPeer

  • addManualPeer(hostAndPort: { host: string; port: number }): void

Protected addPeer

  • addPeer(peer: Peer): void

start

stop

  • stop(): Promise<boolean>

Generated using TypeDoc