TransportRouter
One registry owns reachability and deduplication while adapters overlap.
Type Parameters
Section titled “Type Parameters”E extends EditEnvelope = EditEnvelope
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TransportRouter<
E>(identity,endpoint):TransportRouter<E>
Parameters
Section titled “Parameters”identity
Section titled “identity”endpoint
Section titled “endpoint”Returns
Section titled “Returns”TransportRouter<E>
Properties
Section titled “Properties”identity
Section titled “identity”
readonlyidentity:TransportIdentity
Methods
Section titled “Methods”add(
peer,kind,send):boolean
Parameters
Section titled “Parameters”string
Sender<E>
Returns
Section titled “Returns”boolean
has(
peer,kind):boolean
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
onChange()
Section titled “onChange()”onChange(
listener): () =>void
Parameters
Section titled “Parameters”listener
Section titled “listener”(peer) => void
Returns
Section titled “Returns”() => void
receive()
Section titled “receive()”receive(
peer,input):void
Parameters
Section titled “Parameters”string
unknown
Returns
Section titled “Returns”void
remove()
Section titled “remove()”remove(
peer,kind):void
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
send()
Section titled “send()”send(
peer,message):void
Parameters
Section titled “Parameters”string
message
Section titled “message”Message<E>
Returns
Section titled “Returns”void