* env["rack.io"] + WebSockets notes
@ 2009-12-16 22:58 Eric Wong
2009-12-17 2:26 ` James Tucker
0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2009-12-16 22:58 UTC (permalink / raw)
To: rack-devel
Eric Wong <normalperson@yhbt.net> wrote:
(in <20091216221427.GA21033@dcvr.yhbt.net>)
> With a env["rack.io"] that exposes an IO-ish object, then nothing
> prevents developers from using EM.attach or Rev::IO.new on it, either.
> If people like that, I'd be happy to include it EM and Rev-based
> concurrency models for Rainbows! and add support for it in Sunshowers.
Of course the IO object was already attached to the event loop by the
server processing the request. I suppose we could just stick the
EM::Connection or Rev::IO-based object in env["rack.io"] and then
have the Rack application do:
env["rack.io"].extend(MyWebSocketApp)
--
Eric Wong
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: env["rack.io"] + WebSockets notes
2009-12-16 22:58 env["rack.io"] + WebSockets notes Eric Wong
@ 2009-12-17 2:26 ` James Tucker
0 siblings, 0 replies; 2+ messages in thread
From: James Tucker @ 2009-12-17 2:26 UTC (permalink / raw)
To: rack-devel
On 16 Dec 2009, at 22:58, Eric Wong wrote:
> Eric Wong <normalperson@yhbt.net> wrote:
> (in <20091216221427.GA21033@dcvr.yhbt.net>)
>> With a env["rack.io"] that exposes an IO-ish object, then nothing
>> prevents developers from using EM.attach or Rev::IO.new on it, either.
>> If people like that, I'd be happy to include it EM and Rev-based
>> concurrency models for Rainbows! and add support for it in Sunshowers.
>
> Of course the IO object was already attached to the event loop by the
> server processing the request. I suppose we could just stick the
> EM::Connection or Rev::IO-based object in env["rack.io"] and then
> have the Rack application do:
>
> env["rack.io"].extend(MyWebSocketApp)
Bye bye method cache.
>
> --
> Eric Wong
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-17 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 22:58 env["rack.io"] + WebSockets notes Eric Wong
2009-12-17 2:26 ` James Tucker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).