Skip to main content

Module transport

Module transport 

Source
Expand description

UI-6: the wire seam — every Plexus call the engine makes goes through one Wire: on wasm32 the page’s one WebSocket ([ws], v1’s WsTransport over plexus-client’s ws-web, with its 1 s reconnect loop); in the native tests FakeWire, which records what was opened and lets the test feed each stream.

Push-based: Wire::open hands a sink every item of the call’s stream in order, ending with WireItem::Done, WireItem::Refused, WireItem::Failed or WireItem::Dropped; Wire::close unsubscribes. A component never holds a Wire — the engine does.

Structs§

CallId
A call’s handle on the wire.
FakeWire
The tests’ wire: records each open and close; the test feeds a call’s sink with FakeWire::feed.
Opened
One call FakeWire saw.

Enums§

WireItem
One item of a call’s stream.

Traits§

Wire
The wire: the page’s one socket.

Type Aliases§

Sink
Where a call’s items go.