Open nikteg opened 6 years ago
If we want to collect stats such as 'total games played today' a custom backend is needed.
I've implemented a rudimentary p2p gossip protocol using a scuttlebutt CRDT. Currently it trusts all peers and does not handle room removal. See https://github.com/majesto-games/curves2/commit/48c1c451253634dcc4ef1287d8f07464781537d9
I will research https://github.com/dominictarr/epidemic-broadcast-trees as an alternative to scuttlebutt (the gossip protocol+database), as scuttlebutt seems to be no longer maintained in favour of scuttlebutt-secure (which is something else entirely 🤷♂️ and requires a local server running outside of the browser because of crypto-stuff).