If this peer is fully connected.
The unique identifier of this peer.
Get the latency of this peer.
Event emitted when this peer connects.
Event emitted when a message is received from the peer.
Event emitted when this peer disconnects.
Request a disconnect of this peer.
Send data to this peer.
Generated using TypeDoc
Peer that represents a connection between two transport instances. Peers are nodes that the network is directly connected to.
Peers are created by a
Transport
and provide an abstraction of the location of the remote peer, regardless of it lives on a remote computers, within the same VM or on the same machine.