Examples
Practical examples demonstrating how to use Vuer-RTC for common scenarios.
Basic Scene Setup
Last-Write-Wins Conflict Resolution
When two clients edit the same property concurrently, the edit with the higher Lamport time wins, regardless of arrival order.
LWW ensures all clients converge to the same state, even when messages arrive out of order.
Additive Operations
Additive operations like vector3.add accumulate regardless of message order.
Additive operations are commutative—apply them in any order and get the same result.
Journal-Based State
For full auditability, maintain both the computed graph and a journal of all messages.
Parent-Child Relationships
Build hierarchical scene graphs using the parent option in node operations.