ring

sova-soars-the-sora 2017-11-17T16:52:00.000764Z

@weavejester hey weave how are you my friend?

2017-11-17T16:52:58.000077Z

Hullo @sova

sova-soars-the-sora 2017-11-17T16:54:56.000665Z

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

2017-11-17T16:55:42.000073Z

@sova I have an ongoing project that uses websockets

chadhs 2017-11-17T16:55:43.000078Z

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

2017-11-17T16:56:27.000839Z

@chadhs

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

chadhs 2017-11-17T16:56:53.000623Z

ah the mock/body function; thnx dude!

sova-soars-the-sora 2017-11-17T16:57:14.000190Z

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

2017-11-17T16:58:59.000358Z

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

sova-soars-the-sora 2017-11-17T16:59:15.000541Z

fockn glorius

chadhs 2017-11-17T17:00:06.000073Z

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

2017-11-17T17:00:55.000072Z

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

2017-11-17T17:01:09.000428Z

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

sova-soars-the-sora 2017-11-17T17:09:07.000213Z

you mean with put and take >!

sova-soars-the-sora 2017-11-17T17:09:27.000357Z

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-sora 2017-11-17T17:14:59.000251Z

sente is great! but a little over my newbie head

sova-soars-the-sora 2017-11-17T17:15:47.000078Z

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-sora 2017-11-17T17:16:57.000336Z

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