Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread Henrik Eneroth
Cool! I presume you're restricted to EDN on the channels though, right? On Saturday, November 30, 2013 5:23:17 PM UTC+1, James Henderson wrote: https://github.com/james-henderson/chord Chord is a library for making WebSockets look like simple core.async channels in Clojure (using http-kit)

Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread James Henderson
Unfortunately Chord only accepts raw strings on the channel at the moment - I've been using pr-str and read-string around EDN messages until now. It's a great idea to be able to format/parse different message formats automatically though and something that IMO Chord should provide. I've added

Re: [ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-12-02 Thread Henrik Eneroth
Since we don't really care what the data looks like while it's on the wire, it could even be byte code in order to compress data. But it's certainly nice if it's possible to use EDN in any case. Also, you could consider whether it'd be worthwhile interacting with something like SockJS in order

[ANN] Chord 0.2.1 - making WebSockets look like core.async channels in CLJ+CLJS

2013-11-30 Thread James Henderson
https://github.com/james-henderson/chord Chord is a library for making WebSockets look like simple core.async channels in Clojure (using http-kit) and ClojureScript. Basic usage: Leiningen: [jarohen/chord 0.2.1] ClojureScript: (:require [chord.client :refer [ws-ch]]