This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-28
Channels
- # beginners (33)
- # cljs-dev (9)
- # cljsjs (1)
- # cljsrn (5)
- # clojure (123)
- # clojure-uk (2)
- # clojured (1)
- # clojurescript (11)
- # datomic (71)
- # defnpodcast (2)
- # dirac (8)
- # emacs (35)
- # events (4)
- # figwheel (7)
- # fulcro (29)
- # hoplon (6)
- # immutant (1)
- # keechma (4)
- # lumo (43)
- # nyc (1)
- # off-topic (16)
- # om (1)
- # onyx (9)
- # re-frame (12)
- # rum (15)
- # shadow-cljs (18)
- # spacemacs (1)
- # sql (6)
- # uncomplicate (1)
- # unrepl (5)
- # vim (1)
Hi. What data transport library are re-frame users usually using for client-server communication?
I use chord and wrap it with a re-frame effect https://github.com/JoelSanchez/ventas/blob/master/src/cljs/ventas/ws.cljs#L193
Thank you. I will learn from your code.
Thx. And for realtime communication?
I use https://github.com/jarohen/chord but there're plenty other libraries with similar functionality.
Sente is another option for websockets
Browsing code on github, i found this usage of :>
in a re-frame app. What does it mean? (or, am I just staring at someone's typo?)
(defn app-root []
(fn []
[:> my-component {}]))
I think it means something like adapt react class, i've seen it used for interop. Annoyingly impossible to search for 😬
@deg there is hiccup syntax where you can do [:div>span "My span"]
and it creates a nested span inside a div
ah, this is for integrating with react components: http://reagent-project.github.io/news/news060-alpha.html (see "Better interop with native react")