This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-20
Channels
- # admin-announcements (1)
- # beginners (17)
- # boot (22)
- # cider (43)
- # cljs-dev (6)
- # cljsjs (2)
- # clojure (29)
- # clojure-austin (7)
- # clojure-estonia (1)
- # clojure-russia (62)
- # clojure-sg (1)
- # clojurebridge (2)
- # clojured (1)
- # clojurescript (89)
- # datomic (8)
- # hoplon (333)
- # jobs (3)
- # ldnclj (2)
- # leiningen (10)
- # luminus (1)
- # off-topic (9)
- # om (46)
- # proton (4)
- # re-frame (13)
- # reagent (29)
- # yada (11)
Has anyone implemented re-frame event routing to the server via websocket, and having re-frame-like api on server side to register handlers for these events? I would like to be able processing some events both on client and server while server side handler implementation would dispatch new events to the one or many clients. Is something like this already available?
@drapanjanas: why websocket? I’m waiting for om.next, which will likely replace my current combo re-frame+reagent. Maybe look into om.next how they do state transition, on client side (optimistically) and server side
Well, I am quite happy how re-frame model works on client, so thought of extending same event model to the server side. Nothing fancy just seamless event routing and a possibility of dispatching re-frame compatible events asynchronously from server
websocket just as a transport layer for events
@darwin I will definitely have a closer look to om.next, can not reason about it now. Does it implements some kind of server push too?
hi - i have a beginner question. looking at the todomvc example, each subscription function takes the global app state in the db
argument - but where is it defined that the global app state it receives is the one defined in db.cljs
? Does that question even make sense?
i read that actually i see the initialize-db handler that’s called on init, which returns the merged value of default value and what comes from local storage…. is that a blessed handler or something? i know i’m missing something obvious here, sorry
and then i was looking at https://github.com/Day8/re-frame/wiki/A-Larger-App#larger-apps wondering if that meant a smaller db per panel, but that just handles data operations, and re-frame gives you the top-level global app-db