This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (104)
- # adventofcode (3)
- # aws (1)
- # boot (651)
- # cljs-dev (21)
- # cljsrn (12)
- # clojure (81)
- # clojure-china (1)
- # clojure-germany (1)
- # clojure-miami (2)
- # clojure-nl (8)
- # clojure-russia (19)
- # clojurescript (208)
- # core-typed (1)
- # cursive (19)
- # datavis (55)
- # datomic (57)
- # events (1)
- # hoplon (102)
- # ldnclj (12)
- # leiningen (8)
- # off-topic (11)
- # om (127)
- # onyx (21)
- # parinfer (2)
- # portland-or (3)
- # proton (2)
- # re-frame (2)
- # reagent (6)
@markmandel: I think @alexmiller said it wasn’t deliberate… I don’t remember what the upshot of that discussion was tho’…
I searched the archives. It was in #events on December 13 around 2pm. I can't get to it on my phone to read the whole discussion.
What’s the go-to clojure library for making HTTP calls and supports websocket connections?
http-kit could git that description, but it's a bit unmaintained recently. There's also
aleph that has both HTTP and websocket clients and it's well maintained.
Hi, I am trying to use websockets with
http-kit but get this error: com.fasterxml.jackson.core.JsonGenerationException: Cannot JSON encode object of class: class org.httpkit.server.AsyncChannel when I try to open one from cljs to clj. I already excluded almost every middleware I found, but the error remains. I am using the latest http-kit version.
seems like you're trying to generate JSON from an Async channel, as the error indicates
sveri your http-kit request or response has an async channel inside it. you need to find and dissoc it before json handles it
Ok, I found some more middleware I was not aware of that seems to have broken it. Something in noir.util.middleware
@socksy: yeah, some people have used certainly (I did for one). #C03S1L9DN would probably be best bet if you have to reach those most likely to have some more practical experience.
what css preprocessors are people using? i've used Sass extensively, and Less a bit uh... less so. looking at Garden, which besides being clj is also similar to Hiccup/Reagent. anything else i should look at?
i know sass well, have even built up a lot around it, but wondering if the grass is greener.
Possibly, but not having CSS frameworks/libraries for the preprocessor of choice is less appealing, unfortunately.
in the past i've tended to build my own stuff, rather than use third party frameworks/libs
i haven't spent as much time with bourbon, only reviewing a past project some. it did seem less awful
anyway, it seems based on this extremely scientific poll, that garden isn't especially popular.
> something about s-expressions everywhere is appealing, too Looks like someone had a similar idea it seems - https://github.com/priyatam/mala
Hm, [clj-http](https://github.com/dakrone/clj-http) doesn't seems like it needs any special incantations for example.
Bourbon is easily my favourite css framework. I really dig the grid stuff being mixins rather than extra selectors
Don't they have anything regarding that in the documentation? Like the intermediate certificates and whatnot?
@eyelidlessness: I’ve been using https://github.com/postcss/postcss on several projects and am hoping to get it integrated into my clj project soon
i've not spent much time with any of the node-based preprocessors. why did you choose postcss? what does it offer over, say, sass?
1) by default it’s just css. plays nicely with anyone who hasn’t learned less/sass yet
3) I’ve played around with garden and while I really really want to like it, many common css-isms are very difficult in it
and while one of our designers likes hiccup templates a lot, she agreed that the same idea applied to css was just too difficult to work with
You like a designer who likes hiccup? That's interesting. I'd think it would be too alien for them.
@yogthos: Hi, Did you ever try to use sente with your latest luminus template? And by using sente I mean connecting with a cljs websockt to your server websocket endpoint? Or maybe even some other websocket library?
@sveri: yeah it should work with the latest template, I ran into this issue recently though https://github.com/ptaoussanis/sente/issues/181
I was using slf4j-timbre by default, but turns out that causes issues for sente, so I've removed it for now
the problem is that slf4j-timbre needs to be compiled to implement the slf4j API, and it ends up compiling the specific version of timbre along with its dependencies
ha! I’ve run into issues like that before. Logging libraries dependency conflicts can be the worst
the worst part is that compiled classes seem to take precedence, so you can't just shuffle dependencies around or add exclusions
@yogthos: Ah no, I am talking about a different problem. I described here today and also added an issue for me: https://github.com/sveri/closp/issues/15 The thing is, disabling this option will remove the params from other AJAX requests. However, I just created a new luminus template with http-kit, site and cljs profile, added sente on front and backend and get the same error
oh yeah websocket routes have to be defined separately so they don't get wrapped with the regular middleware
I do the same, especially since I include both html handlers and rest handlers in the same app.
here is a short example https://github.com/uris77/pasmo-gigi-maps/blob/master/src/pasmo_gigi/geo/handlers.clj
spent an entire weekend once trying to get OAuth to work, and the issues was the order in which the middlewares were applied