Experienced scientific programmer, but web-noob here. I want to create a same machine backend + frontend app in clj/cljs. I am using luminus with +re-frame +shadow-cljs
. What is the best way (easy, fast enough) to send messages between the front-end and back-end? http-requests?
Also, if you know any prior work I could steal ideas from, it would be much appreciated π
Yes, http-requests are the way to go π
But I cannot wrap my head around how to do it XD I just asked in the re-frame forum also.
Thanks for replying btw π
Start is always hard. I was googling around some nice example app. Here is atleast some docs about how re-frame talks to servers https://github.com/Day8/re-frame/blob/master/docs/Talking-To-Servers.md
This might be helpful code-wise (i havent tested it but saw this in some comments) https://github.com/oakes/full-stack-boot-example
Sb in the re-frame forum suggested https://github.com/ptaoussanis/sente
I havenβt used that library but I have also heard people recommending it. I thought that is for to use websockets but I might be wrong π
I read your message on the re-frame channel; yes, use the sente-library with websockets π
It seems like it uses websockets. It might be better for my use-case, as it is a continuous channel π
Thanks for the help π