Skip to content

refactor(host): accept remote application channels over supplied streams - #7136

Open
me2seeks wants to merge 1 commit into
rust-previewfrom
stack/p2p-mesh-1-accept-remote-streams
Open

me2seeks wants to merge 1 commit into
rust-previewfrom
stack/p2p-mesh-1-accept-remote-streams

Conversation

@me2seeks

@me2seeks me2seeks commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Stack A: P2P Mesh (Stacked PRs)

Part PR Branch Base
A1 (this PR) #7136 stack/p2p-mesh-1-accept-remote-streams rust-preview
A2 #7137 stack/p2p-mesh-2-peer-identity-and-reachability stack/p2p-mesh-1-accept-remote-streams
A3 #7138 stack/p2p-mesh-3-mesh-control-and-transit stack/p2p-mesh-2-peer-identity-and-reachability
A4 #7139 stack/p2p-mesh-4-cli-and-pairing-ticket stack/p2p-mesh-3-mesh-control-and-transit

Allow Host and WebSocketListener to accept remote application channels over externally supplied AsyncRead + AsyncWrite streams (e.g., P2P / mesh / resumable carriers) without binding a TCP listener.

Changes

  • platform/host-runtime/src/application/host.rs: add remote supplied-stream serving path alongside local socket serving.
  • platform/host-runtime/src/application/host/websocket.rs & upgrade.rs: add WebSocketListener::from_streams to upgrade arbitrary async streams into authenticated Host WebSocket channels.
  • platform/host-runtime/tests/integration/remote_host.rs: add integration test host_accepts_remote_channels_over_supplied_streams verifying real Bearer auth and RPC traffic over supplied streams.

Verification

  • cargo test --locked -p maka-host-runtime --test integration host_accepts_remote_channels_over_supplied_streams (pass)
  • node scripts/asf-license-headers.mjs check (pass)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant