Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultipeerAdapter

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:

  • AltspaceVR
  • Peer-to-peer multiuser topologies

Hierarchy

Index

Constructors

Events

Accessors

Methods

Constructors

constructor

Events

onConnection

Accessors

port

  • get port(): string | number

server

  • get server(): Server
  • set server(value: Server): void

Methods

listen

  • listen(): Promise<Server>