#NEWLINE# def get_received( self , namespace = None ) : #NEWLINE# #INDENT# 'Return the list of messages received from the server.' #NEWLINE# namespace = ( namespace or '/' ) #NEWLINE# r = [ pkt for pkt in self . queue [ self . sid ] if ( pkt [ 'namespace' ] == namespace ) ] #NEWLINE# self . queue [ self . sid ] = [ pkt for pkt in self . queue [ self . sid ] if ( pkt not in r ) ] #NEWLINE# return r