March 2010

Posting this mostly for my reference so I don’t lose it again later. require ‘rubygems’ require ‘eventmachine’ class Connection < EventMachine::Connection attr_accessor :fiber, :name def initialize @fiber = Fiber.new { poll } @name = nil end def post_init (@@connections ||= [])

Read More