Expand description
WebAssembly platform driver for the antenna P2P mesh protocol.
Wraps antenna-protocol’s MeshNodeFSM and bridges it to the browser’s
RTCPeerConnection, RTCDataChannel, and WebSocket via web-sys.
Structs§
- Peer
- User-facing handle to a mesh peer running in the browser.
- Signaling
Client - Browser-side client for the bundled antenna signaling server.
- Storage
- Identity persistence backed by
window.localStorage.
Functions§
- js_
message - Wrap a JS function
(peerId: string, msg: object)into aMessageCallbackforEvent::UserMessage.msgis serialized to a plain JS object viaserde-wasm-bindgen. - js_
no_ arg - Wrap a JS function (zero arguments) into a
NoArgCallbackforPeer::subscribe(Event::Connected(...))and similar. - js_peer
- Wrap a JS function
(peerId: string)into aPeerCallbackforEvent::PeerConnectedand similar peer-scoped events.