Skip to main content

Module node_transport

Module node_transport 

Source
Expand description

Multiplexed JSON-lines transport for long-lived Node extension runtimes.

Requests may complete out of order. A dedicated reader dispatches each response by id, while Node-to-Rust runtime requests use the same stdin pipe for their replies. This keeps transport concerns out of the Pi adapter and gives persistent packages and future one-shot PTC runtimes one protocol.

Structs§

NodeTransport
NodeTransportStartup
A spawned Node host whose initialization response has not necessarily arrived yet. Keeping the transport available separately from the init receiver lets callers publish it to their shutdown path before extension factories or lifecycle hooks can block.
PendingRequest

Type Aliases§

RuntimeHandler
ToolUpdateHandler