Creates a new instance of the Multi-peer Adapter
The onConnection event is raised when a new Context is created for an application session. This happens when the first client connects to your application.
Start the adapter listening for new incoming connections from engine clients
The
MultipeerAdapter
is appropriate to use when the host environment has no authoritative server simulation, where each client owns some part of the simulation, and a connection from each client to the Mixed Reality Extension (MRE) app is necessary. The MultipeerAdapter serves as an aggregation point for these client connections. This adapter is responsible for app state synchronization to new clients, and for managing distributed state ownership (i.e., which client is authoritative over what parts of the simulated state).Example hosts: