MemoryTransport
Defined in: net/MemoryTransport.ts:20
A transport that delivers every frame, once, in send order. NetChannel needs no such promise; replication does — its client applies the inbox in ARRIVAL order because that IS the authority’s order. Declaring the marker is a claim about the link, not a feature to switch on.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemoryTransport(
options?):MemoryTransport
Defined in: net/MemoryTransport.ts:30
Parameters
Section titled “Parameters”options?
Section titled “options?”MemoryTransportOptions = {}
Returns
Section titled “Returns”MemoryTransport
Properties
Section titled “Properties”delivery
Section titled “delivery”
readonlydelivery:"reliable-ordered"
Defined in: net/MemoryTransport.ts:23
In-process: flush delivers the queue in send order, so it models the
real thing rather than being merely convenient.
Implementation of
Section titled “Implementation of”ReliableOrderedTransport.delivery
Accessors
Section titled “Accessors”pendingCount
Section titled “pendingCount”Get Signature
Section titled “Get Signature”get pendingCount():
number
Defined in: net/MemoryTransport.ts:35
Frames sent but not yet delivered (manualFlush mode).
Returns
Section titled “Returns”number
Methods
Section titled “Methods”dropPending()
Section titled “dropPending()”dropPending():
void
Defined in: net/MemoryTransport.ts:64
Drop queued frames without delivering (packet loss simulation).
Returns
Section titled “Returns”void
flush()
Section titled “flush()”flush(
limit?):void
Defined in: net/MemoryTransport.ts:53
Deliver up to limit queued frames to the peer, in send order.
Parameters
Section titled “Parameters”limit?
Section titled “limit?”number = Infinity
Returns
Section titled “Returns”void
on(
event,handler): () =>void
Defined in: net/MemoryTransport.ts:39
Subscribe to incoming frames. Returns an unsubscribe function.
Parameters
Section titled “Parameters”"message"
handler
Section titled “handler”(data) => void
Returns
Section titled “Returns”() => void
Implementation of
Section titled “Implementation of”send()
Section titled “send()”send(
data):void
Defined in: net/MemoryTransport.ts:43
Parameters
Section titled “Parameters”string | ArrayBuffer
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”pair()
Section titled “pair()”
staticpair(options?): [MemoryTransport,MemoryTransport]
Defined in: net/MemoryTransport.ts:68
Parameters
Section titled “Parameters”options?
Section titled “options?”MemoryTransportOptions = {}
Returns
Section titled “Returns”[MemoryTransport, MemoryTransport]