Network
@jolly-pixel/three/network connects Three.js helpers to @jolly-pixel/network. Install that optional peer dependency before using this entry point.
- Peer frustums publish a camera or
Object3Dpose and draw remote poses. - Peer selection and hover publish the local state of a
MeshHighlightand apply remote state to itspeers.
The entry point also exports the presence value types and their decoders:
ts
decodePeerFrustumPose(value: unknown): PeerFrustumPose | undefined;
decodePeerObjectId(value: unknown): string | null | undefined;Malformed values return undefined. A valid null selection or hover means that the peer cleared that state.