Google Closure implements an auto-reconnecting websocket.  

You can read docs on it 
here<http://docs.closure-library.googlecode.com/git/class_goog_net_WebSocket.html>
 and 
see an example of it being imported 
here<https://github.com/kovasb/session/blob/1bf7346a87597aa8f6ad2bc031bd9f959b5d662a/resources/public/cljs/session/main.cljs#L8>
 and 
used 
here<https://github.com/kovasb/session/blob/1bf7346a87597aa8f6ad2bc031bd9f959b5d662a/resources/public/cljs/session/main.cljs#L41>

On Sunday, April 13, 2014 6:16:08 PM UTC-7, t x wrote:
>
> Hi, 
>
>   For building robust cljs web apps, I'd like to have a "uber 
> websocket" which does the following: 
>
>   * when disconnected, it auto reconnects 
>   * and re-sends any messages that were not received 
>
>   Before I hand-roll my own hacks, I was wondering -- is there any 
> existing cljs library which already does this? 
>
> Thanks! 
>

-- 
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/d/optout.

Reply via email to