#NEWLINE# def send( self , target_id , message ) : #NEWLINE# #INDENT# ws = websocket . create_connection ( ( self . url + '/send' ) , header = [ ( 'PID: ' + target_id ) ] ) #NEWLINE# LOG . debug ( ( 'Send a message: %s' % message ) ) #NEWLINE# ws . send ( message ) #NEWLINE# ws . close ( )