Create a new instance.
Event for when a new peer is connected via this transport.
Subscribable
that can be used to register listeners
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
Transport that connects to the network over a web socket. This type of transport requires a URL to connect to and the authentication methods to use.
For use outside browsers a function that creates a
WebSocket
instance may be provided.Example: