env["rack.io"] + WebSockets notes

0 views
Skip to first unread message

Eric Wong

unread,
Dec 16, 2009, 5:58:41 PM12/16/09
to rack-...@googlegroups.com
Eric Wong <normal...@yhbt.net> wrote:
(in <20091216221...@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

James Tucker

unread,
Dec 16, 2009, 9:26:38 PM12/16/09
to rack-...@googlegroups.com

Bye bye method cache.

>
> --
> Eric Wong

Reply all
Reply to author
Forward
0 new messages