@Base

This looks great!  can't wait to try it out. 
> Well done.


Much appreciated, hope it's useful :-)

 @edbond

Thanks. Can you compare sente with chord?


Sure, I can try - have never actually used Chord though (it wasn't around 
when I wrote Sente's predecessor) - so I can only comment superficially on 
what I've gleaned from the README now (would appreciate any corrections!).

Similarities:
* Both seem to offer edn WebSocket messages over core.async channels.
* Both seem to require http-kit for the moment.

Primary difference seems to be that Chord supports only WebSockets (?) 
whereas Sente will fall back to Ajax when WebSockets are unavailable. This 
has ramifications for the API where Chord seems to prefer working with the 
channel directly and Sente uses a send fn to wrap away some of the protocol 
differences.

Sente's wrapping extends to allow things like optional callbacks over 
WebSockets (something not natively available) and broadcasting to multiple 
clients (e.g. when a particular user has multiple browser tabs and/or 
devices connected simultaneously, etc.) which I've found important in 
practice. Some web apps don't do this very well (even Google seems to 
struggle with it), so having a sensible solution baked in can be helpful.

Am not sure what Chord's doing in the way of reconnects, etc.

tl;dr Chord seems be a relatively close-to-the-metal mapping of WebSockets 
to edn channels where Sente is more like Socket.io with edn channels.

I'd probably select between the two based on use-case though, again, I'm 
not at all familiar with Chord or other alternatives so I may well be off 
here.

Hope that helps a little, cheers! :-)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to