As I was the one who cried "sunshowers!" out loud when he shared this
idea, might as well share it here too

http://rainbows.rubyforge.org/sunshowers/

Last I checked the example wouldn't work. But that was long ago.



On Tue, Mar 16, 2010 at 2:24 PM, James Sadler <freshto...@gmail.com> wrote:
> I'd be more than happy to hack on this with you.
>
> I think a module that supports a event-driven data channel that tries
> to connect using Websockets and gracefully degrades to Flash or AJAX
> polling would be awesome.  I have a pet project (slowly) brewing that
> could make use of this.
>
> On 16 March 2010 14:15, David Lee <deathtoallfanat...@gmail.com> wrote:
>> ok this time for sures!
>>
>> I've been meaning for a while now to put together a mini-framework for
>> handling WebSockets (if supported) or flash XMLSocket (if not) connections
>> in a uniform way, so you can write your client / server code once and have
>> the transport be the "best available" without dicking around.
>> The idea would be you write a module filling in a few methods, which
>> describes your server behaviour; the transport-specific stuff gets mixed in
>> by the (EventMachine, probably?) library. Then on your client a jquery event
>> gets triggered when (json) data is received, which passes the json packet
>> into the handler, so you can eg set up a listener for you controller and
>> another for handling UI changes, and you have a unified way to send a json
>> packet to the server.
>> The server can tell from the initial connection 'headers' whether it's
>> dealing with WS or flash, and behave appropriately from then on.
>> Not sure if we'd be likely to finish this in one sitting though, so I'm
>> happy to work on anything tangentially related - maybe using sunshowers, or
>> otherwise doing something interesting w/ rack or rabbitmq if there are no
>> takers for playing with websockets.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby or Rails Oceania" group.
>> To post to this group, send email to rails-ocea...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> rails-oceania+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/rails-oceania?hl=en.
>>
>
>
>
> --
> James
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-ocea...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rails-oceania+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
>
>



-- 
http://crazyhollywood.org

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-ocea...@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to