rupl / bustashape

Collaborative, real-time artboards
https://bustashape.art
MIT License
5 stars 3 forks source link

Distributed syncing #96

Closed rupl closed 8 years ago

rupl commented 8 years ago

This is an alternative approach to using a DB to store the state of the app. I feel like it is something different to try as opposed to just storing it in a central store. Plus it emphasizes the co-creation we try to embrace.

When someone joins, the client should ask other connected users for their canvas state, and make a union of the responses to sync up with the others. The drawing will persist as long as one person is in the room, but the moment they leave, it's gone forever!

rupl commented 8 years ago

I got a nice version of this working! There are two major problems I noticed while building:

rupl commented 8 years ago

duuuuude @afragon give this PR a shot. load it up on a phone, do some stuff, then sign in from a second phone or computer.. magic ✨

https://bustashape-pr-96.herokuapp.com/#sync

rupl commented 8 years ago

ok after trying all the combos of disconnecting, reconnecting, refreshing, and transfering between devices I am feeling good about this. :shipit: