#NEWLINE# def __init__( self , poly , shortpoll = 1 , longpoll = 30 ) : #NEWLINE# #INDENT# self . poly = poly #NEWLINE# self . config = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . running = False #NEWLINE# self . shortpoll = shortpoll #NEWLINE# self . longpoll = longpoll #NEWLINE# self . logger = None #NEWLINE# self . _is_node_server = True #NEWLINE# poly . listen ( 'config' , self . on_config ) #NEWLINE# poly . listen ( 'install' , self . on_install ) #NEWLINE# poly . listen ( 'query' , self . on_query ) #NEWLINE# poly . listen ( 'status' , self . on_status ) #NEWLINE# poly . listen ( 'add_all' , self . on_add_all ) #NEWLINE# poly . listen ( 'added' , self . on_added ) #NEWLINE# poly . listen ( 'removed' , self . on_removed ) #NEWLINE# poly . listen ( 'renamed' , self . on_renamed ) #NEWLINE# poly . listen ( 'enabled' , self . on_enabled ) #NEWLINE# poly . listen ( 'disabled' , self . on_disabled ) #NEWLINE# poly . listen ( 'cmd' , self . on_cmd ) #NEWLINE# poly . listen ( 'exit' , poly . on_exit )