re-frame

domingues 2024-08-14T12:06:02.457489Z

Hi everybody , I've created a 4 player card game (to become it an online game) with re-frame , and now I'm looking for how to build the live experience for the players. Any suggestions to use in re-frame ?

Kimo 2024-08-14T12:07:44.969079Z

Flows? https://day8.github.io/re-frame/Flows/

p-himik 2024-08-14T12:42:09.560429Z

What do you mean by "live experience for the players"?

🏓 1
domingues 2024-08-14T12:43:52.398709Z

I suppose online experience is better to say ...

Kimo 2024-08-14T12:46:33.164739Z

@epidiah might be working on things like that

p-himik 2024-08-14T12:48:23.949649Z

@domingues That's still very vague. If you mean real-time synchronization, I just use Sente and send out events to all the relevant clients when the data changes.

p-himik 2024-08-14T12:49:02.112419Z

In my apps, I also don't even attempt to deal with all the distributed issues and just work with "the last write wins".

domingues 2024-08-14T12:49:11.054809Z

Yes , real-time sync . Thanks !

jakemcc 2024-08-14T14:51:01.899739Z

I haven't built one in years but I've built a multiplayer card games using re-frame and used Firebase to do the persistence and sync between different web browser clients. • https://jakemccrary.com/blog/2018/02/20/creating-serverless-applications-with-clojurescript-and-firebase/ from IN/Clojure 2018 • Former coworker's blog post about http://timothypratley.blogspot.com/2016/07/reacting-to-changes-with-firebase-and.html with clojurescript No idea the current status of firebase or competitors but it would still be my goto for knocking out small clojurescript apps that need some persistence or communication between clients if I wasn't trying to host my own backend service.

👍 1
fabrao 2024-08-21T18:42:05.583139Z

@domingues this is the right stuff you should use https://github.com/hyperfiddle/electric

👍 1