This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-15
Channels
- # admin-announcements (25)
- # beginners (21)
- # boot (487)
- # cider (8)
- # clara (2)
- # cljsrn (35)
- # clojure (44)
- # clojure-austin (6)
- # clojure-russia (211)
- # clojure-uk (25)
- # clojurescript (225)
- # core-matrix (1)
- # data-science (3)
- # datomic (23)
- # events (1)
- # hoplon (9)
- # immutant (14)
- # jobs (1)
- # jobs-discuss (5)
- # ldnclj (3)
- # lein-figwheel (2)
- # off-topic (2)
- # om (65)
- # onyx (65)
- # parinfer (3)
- # pedestal (4)
- # proton (1)
- # protorepl (1)
- # re-frame (16)
- # reagent (3)
- # ring-swagger (1)
- # specter (11)
- # untangled (1)
- # yada (8)
@nha. Not currently. You could return a record and provide your own marshalling. See body.clj for examples.
Or return a map with a special entry indicating the event name
I suggest you look at how yada currently does sse and providing an alternative. It's easier that you might think.
Right. The map is probably easier. I have websockets working now, still struggling a bit on SSE.
It seems to work with the url in the browser and it somehow connects using js/EventSource
but I can't get any events printed yet.
I'd like to run the example there : https://github.com/juxt/yada/blob/master/dev/resources/static/js/examples.js#L54 but get an error with lein on the yada repository
@nha Can you paste the error you get with lein? I'll take a look at it