def on(event)
      EVENT_TYPES.include?(event) or (self.class.logger.error "Invalid event #{event}" and return)
      block_given? and @blocks[event] << Proc.new
    end
def on(event)
      EVENT_TYPES.include?(event) or (self.class.logger.error "Invalid event #{event}" and return)
      block_given? and @blocks[event] << Proc.new
    end
Channel initializer

 ==== Parameters
 * +name+ channel name (CHANNELS item)

 Method that defines a new event in a channel
 ==== Parameters
 * +event+ event type. Must be included in EVENT_TYPES