This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-28
Channels
- # aleph (50)
- # announcements (3)
- # aws (35)
- # beginners (74)
- # boot (25)
- # calva (39)
- # cider (18)
- # clara (2)
- # cljdoc (18)
- # cljs-dev (24)
- # cljsrn (11)
- # clojure (166)
- # clojure-europe (13)
- # clojure-italy (5)
- # clojure-nl (6)
- # clojure-spec (35)
- # clojure-uk (263)
- # clojurescript (22)
- # clojutre (1)
- # code-reviews (34)
- # cursive (58)
- # data-science (2)
- # datascript (4)
- # datomic (4)
- # duct (6)
- # emacs (7)
- # figwheel-main (9)
- # fulcro (2)
- # graphql (3)
- # hoplon (22)
- # hyperfiddle (2)
- # juxt (5)
- # kaocha (6)
- # leiningen (33)
- # luminus (15)
- # off-topic (1)
- # pedestal (5)
- # reagent (18)
- # reitit (12)
- # shadow-cljs (171)
- # vim (5)
googled bidi to find the github page : found this as the first result : Bidi Meaning - (in South Asia) a type of cheap cigarette made of unprocessed tobacco wrapped in leaves. Was this the inspiration behind naming the library 😛
I'm trying to use Sente with Yada. Its Aleph adapter returns {:body s}
where s
is Manifold's SplicedStream or {:status 403, :body "error msg"}
when there's some error (e.g. CSRF token mismatch).
As far as I can tell, Aleph serves this Manifold's stream as-is whereas Yada tries to serialize it (in my case to Transit since I've specified {:produces "application/transit+json"}
).
How do I avoid such serialization? How would you go about a case when all you can produce in a handler is some stream?
Digging deeper. The returned steam is an instance of IEventSource
, and calling to-body
on it calls render-seq
which depends on the selected representation.
And the example at edge/phonebook/graphql.clj
does an interesting thing. It also specifies :produces
but instead of returning a body, it loops in the executor on new messages until the stream is closed. I know you said that the phonebook examples are outdated but they are the only ones that have websockets example.