Fork me on GitHub
#admin-announcements
<
2015-12-16
>
roberto01:12:56

I was also looking for a websocket client

roberto02:12:30

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 😞

sveri08:12:14

@danielcompton: I was thinking about that too, but I guess its one of gniazdos dependencies that causes the classpath issue

sveri08:12:33

@mpenet: That also looks like what I want, but brings in a lot of deps I don't need

sveri09:12:52

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

mpenet09:12:10

ring probably pulls an old jetty version which isn't compatible with some of the dependencies of jetty-ws

mpenet09:12:07

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

sveri10:12:39

@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

mpenet10:12:36

yw, I don't care much about SO points ;}

sveri10:12:54

@roberto: Now that I got that error fixed I got https://github.com/stylefruits/gniazdo working. Seems to do exactly what I need

roelof11:12:55

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 ?

roberto14:12:19

@sveri Thank you. gniazdo looks like what I need.

dave14:12:24

@roberto: i had a similar use case a while back -- here's how i solved it: http://stackoverflow.com/a/32030532/2338327

roberto14:12:29

@dave thanks. That is very helpful

sveri14:12:40

@roberto: but take care if you use it with ring, you need to exclude ring-jetty-adapter then and declare your own one

roberto14:12:11

yeah, I was planning on using it in a cli app. So no ring.

roberto16:12:21

oh man, reading the source for clj-webdriver is pretty painful. Hard to find things.

roberto16:12:42

for example, I can’t find the ns for taxi

roberto16:12:05

even though using taxi is as simple as (:require [clj-webdriver.taxi :as taxi])

roberto16:12:46

and a search for the word taxi doesn’t show anything

roberto16:12:58

makes me start to question my own sanity

dave17:12:41

whoa... that is weird. where is clj-webdriver.taxi???

roberto17:12:59

yeah, I never thought I’d see magic in clojure (btw I hate magic)

roberto17:12:17

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

dave17:12:09

but i can't find it in the source on github

roberto17:12:32

yeah, I’m very confused

dave17:12:44

maybe it was removed sometime after version 0.7.2?

roberto17:12:52

0.7.2 is the only version

roberto17:12:02

well, it is the latest version

roberto17:12:21

you are right

roberto17:12:33

I had to switch to the 0.7.x branch

roberto17:12:51

so much for having master be stable

roberto17:12:36

@dave thank you for your help

roberto17:12:20

weird, so the next release is a breaking release

markmandel21:12:30

Does anyone in here know why ClojureTV disabled embedding of its YouTube videos?

markmandel21:12:09

Seems odd, and I wanted to embed my talk in a blog post of mine talking about Clojure/conj... 😕