Fork me on GitHub
#ring
<
2017-11-17
>
sova-soars-the-sora16:11:00

@weavejester hey weave how are you my friend?

sova-soars-the-sora16:11:56

do you do any realtime backend/frontend comms on your projects?

weavejester16:11:42

@sova I have an ongoing project that uses websockets

chadhs16:11:43

does anyone have an example of using ring-mock passing form data (not query params)?

weavejester16:11:27

@chadhs

(-> (mock/request :post "/foo")
    (mock/body {:something "blah"}))

chadhs16:11:53

ah the mock/body function; thnx dude!

sova-soars-the-sora16:11:14

@weavejester cool! are you implementing websockets yourself or are you using something well known?

weavejester16:11:59

@sova I use http-kit for websockets on the server side, and on the client side, Haslett (https://github.com/weavejester/haslett)

chadhs17:11:06

oh nice, i’ve only played with sente a bit when going through yogthos’ clojure webdev book 👍:skin-tone-2:

weavejester17:11:55

I used to use Chord, but the bi-directional channels were a little against the design of core.async.

weavejester17:11:09

Channels in core.async are more like queues; they’re deliberately one way.

sova-soars-the-sora17:11:07

you mean with put and take >!

sova-soars-the-sora17:11:27

I lik channels and the idea / underlying concept, I don't know of a good use case. I'm sure there are manyv

sova-soars-the-sora17:11:59

sente is great! but a little over my newbie head

sova-soars-the-sora17:11:47

my current implementation using sente works quite well but the callbacks, i never really figured out cleanly, so my login script at the moment is the hackiest hack job in the world lol

sova-soars-the-sora17:11:57

thanks for pointing out haslett @weavejester, it's really quite fascinating and amazing !! how much you can learn implementing the same project using different approaches / libs