Let your devices talk to each other
summary
A working peer-to-peer chat/photo app is built that auto-discovers peers on the local Wi‑Fi and syncs JSON documents between devices using DNS Service Discovery (mDNS/Bonjour) and Couchbase Lite with its embedded listener/replication server. Code shows a few lines to publish a service, grab the peer URL, and start push/pull replication; the demo runs and messages appear in real time. Security is optional (HTTP auth/SSL, no disk encryption by default); conflict handling defaults to longest-branch but supports conflict listeners for custom resolution.
AI-written summary · about
