auki-network-swift
Synced from the repository
This page mirrors bindings/swift/auki-network-swift/README.md in the auki-sdk repo (branch develop).
The repository is the source of truth.
UniFFI Swift bindings for auki-network — the v0 networking surface for native iOS / Swift consumers. Produces a staticlib for iOS plus a cdylib for host uniffi-bindgen introspection.
Status: Shipped (v0; cluster lifecycle is auki-domain-swift future work).
Public surface​
- Discovery HTTP client —
DiscoveryClient,ClusterEntry,CreateClusterOutcome,DiscoveryError. NetworkRuntime+spawn_for_swiftorchestrator — builds the libp2p swarm and wires it to Swift callback interfaces.- Peer-liveness observation —
PeerLivenessListener(3-variant v0 surface:Connected/Disconnected/HeartbeatStreamClosed). - Heartbeat source —
HeartbeatTimestampProvider. - 5-payload stream surface —
StreamSubscriptionAudio/…Camera/…PointCloud/…JointEncoders/…Detectionplus matchingNetworkRuntime.open_*_streamasync methods. Producer side via theSwiftStreamProvidercallback interface with a two-call protocol (dispatch_decision→SwiftStreamDecision; on Accept, the runtime calls the matching*_sourcemethod).
Cluster lifecycle (ClusterManager etc.) is the future auki-domain-swift, mirroring the Python auki-network / auki-domain split.
Depends on​
auki-network— upstream crate the UniFFI annotations live in.auki-identity— transitively, forPeerIdentityderivation.