Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a spawned persistent spheres (peer to peer) example #327

Merged
merged 4 commits into from
Mar 26, 2022

Conversation

vincentfretin
Copy link
Member

The example is similar to #326 but here with spawned spheres.
I created a spawner-persistent component and persistent-p2p that handle the logic of keeping the persistent entities peer to peer. The spheres are kept in the room if there is at least one participant remaining in the room.

This is related to #265, it's the first time we use the applyPersistentFirstSync api in an example.

Next example would be persisting it server side.

@vincentfretin vincentfretin merged commit 2aa7ec1 into master Mar 26, 2022
@vincentfretin vincentfretin deleted the persistent-room branch March 26, 2022 16:43
@vincentfretin
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant