This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-28
Channels
- # babashka (28)
- # beginners (252)
- # bristol-clojurians (2)
- # calva (28)
- # cider (11)
- # clj-kondo (15)
- # cljs-dev (7)
- # clojure (378)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (4)
- # clojure-uk (32)
- # clojurescript (128)
- # cursive (39)
- # data-science (18)
- # docker (37)
- # figwheel-main (10)
- # fulcro (45)
- # ghostwheel (7)
- # graalvm (2)
- # hugsql (1)
- # jobs (2)
- # joker (5)
- # kaocha (5)
- # luminus (12)
- # off-topic (37)
- # onyx (4)
- # pathom (22)
- # pedestal (70)
- # re-frame (7)
- # reagent (30)
- # ring (4)
- # shadow-cljs (12)
- # spacemacs (1)
- # sql (26)
- # tools-deps (7)
- # vrac (2)
- # vscode (7)
- # xtdb (27)
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?
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 ๐
Also, if you know any prior work I could steal ideas from, it would be much appreciated ๐