Surfaces ↓
Peer
client.peer Daemon -> webapp peer surface: a full snapshot of every known peer (paired, iAP2, and companion-gateway state), re-sent whenever any peer changes. There is no per-webapp request; a fresh snapshot arrives on connect and after every change.
Events
the daemon pushes these unprompted; subscribing returns an unsubscribe function
onSnapshot(handler: (PeerSnapshotMap) => void): () => void
const off = client.peer.onSnapshot((peerSnapshotMap) => {
// peerSnapshotMap: PeerSnapshotMap
});
// call off() to unsubscribe Types
shapes referenced above, as the SDK types them
Map of peer-id to Peer.
type PeerSnapshotMap = {};