Re: cljs, websocket, autoreconnect

2014-04-14 Thread Gary Trakhman
Oh good. I don't think I'd stop using jetty for the sake of websockets.  If
sente has a backend impl that can be made compatible with it, then is
consider that, but the jetty-websockets-async lib is relatively
straightforward. This reconnecting closure websocket fixes my last major
issue.

On Monday, April 14, 2014, Johann Bestowrous 
wrote:

> Google Closure implements an auto-reconnecting websocket.
>
> You can read docs on it 
> here
>  and
> see an example of it being imported 
> here
>  and
> used 
> here
>
> 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.
>

-- 
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.


Re: cljs, websocket, autoreconnect

2014-04-13 Thread Johann Bestowrous
Google Closure implements an auto-reconnecting websocket.  

You can read docs on it 
here
 and 
see an example of it being imported 
here
 and 
used 
here

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.


Re: cljs, websocket, autoreconnect

2014-04-13 Thread Sean Corfield
Take a look at Sente (core.async over web socket / xhr) - and contribute 
anything additional you need to that.

On Apr 13, 2014, at 6:16 PM, t x  wrote:
>  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?



signature.asc
Description: Message signed with OpenPGP using GPGMail


cljs, websocket, autoreconnect

2014-04-13 Thread t x
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.