#NEWLINE# def run( self ) : #NEWLINE# #INDENT# '\n        Run the Node Server. Exit when triggered. Generally, this method should\n        not be overwritten.\n        ' #NEWLINE# self . running = True #NEWLINE# self . poly . connect ( ) #NEWLINE# counter = 0 #NEWLINE# try : #NEWLINE# #INDENT# while self . running : #NEWLINE# #INDENT# time . sleep ( self . shortpoll ) #NEWLINE# self . poll ( ) #NEWLINE# counter += self . shortpoll #NEWLINE# if ( counter >= self . longpoll ) : #NEWLINE# #INDENT# self . long_poll ( ) #NEWLINE# counter = 0 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# self . on_exit ( ) #NEWLINE# #UNINDENT# self . poly . exit ( )