def on_connection(selector=nil,&block)
      if selector.nil? || selector == '*'
        instance_eval(&block)
      else
        @current_connection = ConnectionScript.new
        instance_eval(&block)
        @connections << [selector,@current_connection]
        @current_connection = nil
      end
    end
def on_connection(selector=nil,&block)
      if selector.nil? || selector == '*'
        instance_eval(&block)
      else
        @current_connection = ConnectionScript.new
        instance_eval(&block)
        @connections << [selector,@current_connection]
        @current_connection = nil
      end
    end
Configuration API
 Specifies behavior to run for specific connections based on the id number
 assigned to that connection. Connection ids are 1-based.

 The selector can be any of the following:
   Number - Run the code on that connection id
   Range - Run the code for a connection id in that range
   Proc - Call the proc with the id and run if it matches
   '*' - Run this code for any connection that doesn't match others