This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-12
Channels
- # bangalore-clj (4)
- # beginners (77)
- # boot (71)
- # cider (10)
- # clara (1)
- # cljs-dev (52)
- # cljsjs (28)
- # cljsrn (1)
- # clojure (390)
- # clojure-dev (5)
- # clojure-india (1)
- # clojure-italy (5)
- # clojure-nl (24)
- # clojure-poland (4)
- # clojure-russia (123)
- # clojure-spec (71)
- # clojure-taiwan (2)
- # clojure-uk (8)
- # clojurescript (236)
- # core-matrix (6)
- # cursive (19)
- # datomic (16)
- # defnpodcast (2)
- # editors (1)
- # emacs (36)
- # garden (2)
- # hoplon (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (47)
- # luminus (4)
- # lumo (6)
- # off-topic (207)
- # om (1)
- # onyx (20)
- # pedestal (40)
- # perun (2)
- # re-frame (8)
- # reagent (48)
- # ring (2)
- # ring-swagger (2)
- # specter (13)
- # unrepl (89)
- # vim (6)
@bahulneel Regarding connection management for websockets: I implemented a defrecord that implements WebSocketConnectionListener and WebSocketListener
this way you can store the ws session and refer to it in the callbacks
it was just a short experiment and I think the code smells a bit
@bahulneel is it similar to this snippet?
Something like that, I actually used the ws-map provided in pedestal. This worked for me because all my messages have all the context in them.
Still have to do some house work to keep the connection pool clean and it smells a bit also
You mean that a client always sends its id as part of this context?
Hey all. I feel rather dumb. Logs being logged with (io.pedestal.log/anylevel ….)
are not showing up in my logfiles nor when the server is running. I have not modified the logback.xml
or anything that I know of. Anybody know what this could be?
@ddeaguiar it was
I could only guess that some lib is bringing in org.slf4j/slf4j-nop
and you need to exclude it
@ddeaguiar is it just org.slf4j/slf4j-nop
I have been looking at my other projects and I find:
org.slf4j/jcl-over-slf4j
org.slf4j/jul-to-slf4j
org.slf4j/log4j-over-slf4j
org.slf4j/slf4j-api
org.slf4j/slf4j-nop
[com.datomic/datomic-pro "0.9.5544" :exclusions [org.slf4j/slf4j-api
org.slf4j/slf4j-nop
org.slf4j/slf4j-log4j12
org.slf4j/log4j-over-slf4j
org.slf4j/jcl-over-slf4j
org.slf4j/jul-to-slf4j
org.clojure/clojure
commons-codec]
I wish more projects used :scope "provided" for their Clojure dependency. That would let the library use its version but the application's version would automatically override it.
@mtnygard I've never really understood how scopes work, is there a place I can go to learn?
@bahulneel refer to https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html. Maven is used under the covers
@ddeaguiar Would explain why I've had little success in finding documentation 🙂, thanks for the help.
@bahulneel I more exact answer is that Lein uses https://github.com/cemerick/pomegranate under the covers. Pomegranate wraps Sonatype Aether. The scopes are Maven scopes (https://github.com/cemerick/pomegranate/blob/pomegranate-0.3.0/src/main/clojure/cemerick/pomegranate/aether.clj#L632). So the Maven docs are still a good place to look.
And I suppose the :dependencies
vector in project.clj
is more precisely referred to as a vector of Maven coordinates.
Hey, so I just watched https://www.youtube.com/watch?v=_Cf-STRvFy8. Paul does a great job of presenting Vase, and I learned that there is a lot more power than I had realized in the vase/apis
syntax (e.g. :params
in the slide at 23:00).
I've read the docs at https://github.com/cognitect-labs/vase/tree/master/docs, but haven't seen much of this. Are there more docs somewhere? (Or are we still at "read the source, Luke?)
It would be great to even have a beginner doc that walks through the syntax bits presented in this video.