Skip to main content

Module iroh_transport

Module iroh_transport 

Source
Expand description

Iroh client-side transport — Phase 2 part 2 of Epic #131 (#133).

Thin wrapper over the transport-generic SessionRpcTransport (see super::rpc_session) specialised to iroh’s [web_transport_iroh::Session] so existing [RpcClientImpl<S, T>] consumers can ride the hyprstream-rpc/1 ALPN with zero changes to envelope signing, JWT handling, or response parsing.

Each send() opens a fresh bidi stream on the connection, writes the SignedEnvelope bytes, and reads the response (bounded) — matching the IrohRpcProtocolHandler (transport::iroh_rpc) accept loop on the server side.

Out of scope (Phase 3): the Transport::subscribe and Transport::publish methods are streaming-plane concerns. They return errors here; subscribers go through moq-net on the moql ALPN instead.

Structs§

IrohTransport
Wraps an iroh [Connection] as a Transport for RPC plane traffic.

Type Aliases§

IrohPendingStream
Re-export the generic pending-stream stub under the historical name.
IrohPublishStub
Re-export the generic publish stub under the historical name.