Create a new instance.
Event for when a new peer is connected via this transport.
Subscribable
that can be used to register listeners
Get the port number the transport was bound to.
port number, or 0
if no server was started
Get if transport is started.
true
if transport is started
Add a peer to this transport. This will start monitoring this peer for connection events and make it available/unavailable as it connects/disconnects.
Start this transport.
boolean indicating if the transport was started
Stop this transport.
boolean indicating if the transport was stopped.
Generated using TypeDoc
TCP based transport.