string
addressnumber
port
Buffer
idstring
addressnumber
portObject
endpointstring
addressnumber
udpPortnumber
tcpPort
Error
err
Peer
peer
Peer
peer
Object
optionsBuffer
privateKeyfunction
[createSocket] - function for creating socket, by defaultdgram.createSocket('udp4')
will be callednumber
[timeout] - request timeout, 60s by defaultnumber
[refreshInterval] - refresh interval, 5m by defaultObject
endpointstring
addressnumber
udpPort?number
tcpPort -null
for bootstrap node
Similar to node dgram bind
Similar to node dgram close
RawPeer[]
peersfunction
callback
RawPeer[]
peersfunction
callback
returns: Peer[]
Peer[]
peers
function
callback