Multipeerconnectivity documentation

I want to rewrite our Couchbase Lite 1.4 app to version 2.1.3 and am interested in documentation about peer2peer replication using the iOS MultipeerConnectivity framework. This is what I found so far:

Both documents are helpful but neither describes a fully working example. Any pointers would be very much appreciated.

P2P is an enterprise only feature so you will need to work with the account team after you purchase a license. They can help you out with that.