I was also looking for a websocket client
I wanted to build a cli interface for a server. Use Case: a server that doesn’t accept any outside connections (only the running service is allowed to go out). Have an cli admin that can be started in the client to interact with the server and view its status, trigger actions, etc. But wanted to use websockets, especially for displaying statistics. I know this is doable in node. I’ve seen some apps on github that do this. But couldn’t find a clojure websocket client 😞
@roberto @jeff @sveri there's one in https://github.com/mpenet/jet
@danielcompton: I was thinking about that too, but I guess its one of gniazdos dependencies that causes the classpath issue
@mpenet: That also looks like what I want, but brings in a lot of deps I don't need
The thing is, it is enough to include the jetty websocket client dependency [org.eclipse.jetty.websocket/websocket-client "9.3.6.v20151106"]
into my project and I cannot serve my pages anymore. I opened a SO question for it: http://stackoverflow.com/questions/34307910/abstractmethoderror-when-including-org-eclipse-jetty-websocket-websocket-client
ring probably pulls an old jetty version which isn't compatible with some of the dependencies of jetty-ws
jet has a ring compatible adapter fyi, so you could just replace the jetty adapter (and http-kit too, dunno why you have both) you're using now with it
@mpenet: I think that solved it, thank you very much. If you want to, you can go collect some SO points. I have both ring and http-kit included because ring has the easier dev setup and http-kit is used for production
yw, I don't care much about SO points ;}
@roberto: Now that I got that error fixed I got https://github.com/stylefruits/gniazdo working. Seems to do exactly what I need
Hello , I try to register a user. Therefore I use a last-login which has to be a time. But the user have not logged in. How do I see a dummy time object in this ?
@sveri Thank you. gniazdo
looks like what I need.
@roberto: i had a similar use case a while back -- here's how i solved it: http://stackoverflow.com/a/32030532/2338327
@dave thanks. That is very helpful
@roberto: but take care if you use it with ring, you need to exclude ring-jetty-adapter then and declare your own one
yeah, I was planning on using it in a cli app. So no ring.
oh man, reading the source for clj-webdriver
is pretty painful. Hard to find things.
for example, I can’t find the ns for taxi
even though using taxi
is as simple as (:require [clj-webdriver.taxi :as taxi])
and a search for the word taxi
doesn’t show anything
makes me start to question my own sanity
whoa... that is weird. where is clj-webdriver.taxi???
yeah, I never thought I’d see magic in clojure (btw I hate magic)
for a moment I thought taxi
was maybe being pulled in from a 3rd party dependency, but no. It is in clj-webdriver
wiki https://github.com/semperos/clj-webdriver/wiki/Introduction%3A-Taxi
here it is in http://crossclj.info: https://crossclj.info/ns/clj-webdriver/0.7.2/clj-webdriver.taxi.html#
but i can't find it in the source on github
yeah, I’m very confused
maybe it was removed sometime after version 0.7.2?
0.7.2 is the only version
oh, lol
well, it is the latest version
ah
I see
you are right
I had to switch to the 0.7.x
branch
damn
so much for having master be stable
@dave thank you for your help
🍻
yep, here's the commit on master where the taxi api was removed: https://github.com/semperos/clj-webdriver/commit/9010d49ad7612d30da8924e3d8a5fe09ce36694d
weird, so the next release is a breaking release
Does anyone in here know why ClojureTV disabled embedding of its YouTube videos?
Seems odd, and I wanted to embed my talk in a blog post of mine talking about Clojure/conj... 😕