This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-24
Channels
- # aleph (4)
- # beginners (93)
- # cider (7)
- # cljs-dev (16)
- # cljsrn (5)
- # clojure (192)
- # clojure-dusseldorf (3)
- # clojure-italy (14)
- # clojure-russia (16)
- # clojure-serbia (1)
- # clojure-spec (85)
- # clojure-taiwan (1)
- # clojure-uk (79)
- # clojurescript (188)
- # code-reviews (9)
- # core-async (2)
- # crypto (1)
- # cursive (26)
- # datomic (21)
- # heroku (1)
- # hoplon (3)
- # jobs (7)
- # jobs-discuss (20)
- # jobs-rus (13)
- # off-topic (77)
- # om (15)
- # onyx (23)
- # pedestal (94)
- # planck (11)
- # proton (10)
- # protorepl (1)
- # re-frame (16)
- # ring (22)
- # ring-swagger (9)
- # rum (2)
- # specter (18)
- # testing (2)
- # untangled (14)
- # vim (12)
- # yada (58)
I'm trying to write a networking app with Aleph and Manifold but am a confused newb so any help would be appreciated. I'm going over the aleph.examples.tcp code and I think I understand how that works but it's all self contained in a single project/app.
What I tried to do is with my server app use the tcp example and with my client app I used (def s (s/stream))
thinking that when I used @(s/put! c 1)
and @(s/take! c)
my client app would connect to my server app but I get a connection refused in my app and my server app just stops running without any output.
on the server side of things I changed the handler from inc
to (fn [x] (do (println (str "server: " x)) x))
and then wrapped @(s/put! c 1)
on the client in a print statement so I could see that each app was getting/sending data but other than that I am using line for line the aleph.examples.tcp code