Skip to content

feat: surface local_socket_addrs through HcP2p trait#2

Draft
HexaField wants to merge 1 commit into
coasys:0.6.0-coasysfrom
HexaField:feat/iroh-ice-v2
Draft

feat: surface local_socket_addrs through HcP2p trait#2
HexaField wants to merge 1 commit into
coasys:0.6.0-coasysfrom
HexaField:feat/iroh-ice-v2

Conversation

@HexaField
Copy link
Copy Markdown

Summary

Surfaces local_socket_addrs() through the HcP2p trait, enabling the AD4M executor to access transport socket addresses for WebRTC ICE candidate extraction.

Changes

  • crates/holochain_p2p/src/spawn/actor.rs: Implements local_socket_addrs() — currently returns empty vec with a TODO. This is intentional: the actual implementation requires kitsune2 to be updated with the local_socket_addrs trait method (see holochain/kitsune2#478). Once kitsune2 releases with that change and this repo bumps its dep, the implementation here becomes a one-line delegation to the transport.
  • crates/holochain_p2p/src/types/actor.rs: Adds local_socket_addrs() to the HcP2p trait definition.

Why the empty implementation?

The dependency chain is: kitsune2 (transport trait) → holochain (HcP2p trait) → ad4m (GraphQL API). Each layer needs the trait surface to exist so downstream consumers can compile and wire up their code. The actual address data flows once kitsune2 is released and the dep is bumped. This is the same pattern used for other trait methods that were added before their backing implementation was ready.

Part of: coasys/ad4m#719

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