Files
python-sdk/pkg
zeekay 65cb749fa6 feat(zap-server): auto-publish via hanzo-zap-mdns + retract on stop
Every ZapServer.start() now publishes its bound port + agent_label as a
`_hanzo-zap._tcp.local.` mDNS record (best-effort — silently skipped
when `hanzo-zap-mdns` isn't installed). Browser extensions and any
LAN-wide agent can discover the server via `hanzo_zap_mdns.browse()`
without hard-coded ports or fragile lockfile registries.

Publish runs on a worker thread (asyncio.to_thread) so zeroconf's
internal multicast-socket setup doesn't block our event loop and
trigger EventLoopBlocked on zeroconf >= 0.140.

stop() retracts the announcement before closing the WS.
2026-05-08 12:10:26 -07:00
..
2026-03-23 10:26:07 -07:00