AddrInfo.withId constructor

AddrInfo.withId(
  1. PeerId id
)

Creates a new AddrInfo with the given peer ID and no addresses

Implementation

AddrInfo.withId(this.id) : addrs = [];