Got the swarm data structures to replicate, and got the updates to trigger when the user pans the map. There were some undocumented nuances with swarm:
Simply creating models and expecting them to sync didn't work... I had to call host.get on all the models that I wanted to be shared between the browsers.
The swarm server's ID must start with swarm~ or the clients will not sync with it. There is conditional logic that uses the ID format to determine the type of node.
Got the swarm data structures to replicate, and got the updates to trigger when the user pans the map. There were some undocumented nuances with swarm:
host.get
on all the models that I wanted to be shared between the browsers.swarm~
or the clients will not sync with it. There is conditional logic that uses the ID format to determine the type of node.